mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
add some notes
This commit is contained in:
parent
f93c4cf48c
commit
f91484ca07
@ -6,6 +6,9 @@ import (
|
||||
"github.com/seaweedfs/seaweedfs/weed/pb/schema_pb"
|
||||
)
|
||||
|
||||
// ToRecordValue converts a parquet.Row to a schema_pb.RecordValue
|
||||
// This does not work or did not test with nested structures.
|
||||
// Using this may fail to convert the parquet.Row to schema_pb.RecordValue
|
||||
func ToRecordValue(recordType *schema_pb.RecordType, row parquet.Row) (*schema_pb.RecordValue, error) {
|
||||
values := []parquet.Value(row)
|
||||
recordValue, _, _, err := toRecordValue(recordType, values, 0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user