mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Add JSON Path expression evaluation support (#7315)
- Includes support for FROM clause JSON path
This commit is contained in:
committed by
Harshavardhana
parent
b296b3cf8b
commit
e463386921
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user