Add JSON Path expression evaluation support (#7315)

- Includes support for FROM clause JSON path
This commit is contained in:
Aditya Manthramurthy
2019-03-09 08:13:37 -08:00
committed by Harshavardhana
parent b296b3cf8b
commit e463386921
15 changed files with 488 additions and 59 deletions

View File

@@ -17,7 +17,6 @@
package parquet
import (
"encoding/json"
"io"
"github.com/bcicen/jstream"
@@ -75,11 +74,7 @@ func (r *Reader) Read() (rec sql.Record, rerr error) {
}
parquetRecord.Range(f)
data, err := json.Marshal(kvs)
if err != nil {
return nil, err
}
return &jsonfmt.Record{Data: data}, rerr
return &jsonfmt.Record{KVS: kvs, SelectFormat: sql.SelectFmtParquet}, nil
}
// Close - closes underlaying readers.