mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -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
@@ -16,10 +16,32 @@
|
||||
|
||||
package sql
|
||||
|
||||
import "github.com/bcicen/jstream"
|
||||
|
||||
// SelectObjectFormat specifies the format of the underlying data
|
||||
type SelectObjectFormat int
|
||||
|
||||
const (
|
||||
// SelectFmtUnknown - unknown format (default value)
|
||||
SelectFmtUnknown SelectObjectFormat = iota
|
||||
// SelectFmtCSV - CSV format
|
||||
SelectFmtCSV
|
||||
// SelectFmtJSON - JSON format
|
||||
SelectFmtJSON
|
||||
// SelectFmtParquet - Parquet format
|
||||
SelectFmtParquet
|
||||
)
|
||||
|
||||
// Record - is a type containing columns and their values.
|
||||
type Record interface {
|
||||
Get(name string) (*Value, error)
|
||||
Set(name string, value *Value) error
|
||||
MarshalCSV(fieldDelimiter rune) ([]byte, error)
|
||||
MarshalJSON() ([]byte, error)
|
||||
|
||||
// Returns underlying representation
|
||||
Raw() (SelectObjectFormat, interface{})
|
||||
|
||||
// Replaces the underlying data
|
||||
Replace(k jstream.KVS) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user