Open jvilhuber opened 3 weeks ago
If I investigate with parquet schema
I see
$ parquet schema logfile.parquet
{
"type" : "record",
"name" : "parquet_go_root",
"fields" : [ {
"name" : "timestamp",
"type" : {
"type" : "long",
"logicalType" : "local-timestamp-millis"
}
}, {...
I'm very likely doing something wrong. Could use a clue. I have a struct I'm using to translate from json to parquet files. I have not figured out how to use the same 'time.Time' field for both json and parquet, so I have these two fields:
I also tried
The json file has something like
Json decoding works fine and I have a valid, non-zero timestamp in go (verified with the debugger). In the code, I then do this:
And then I write out the parquet using the normal mechanisms. I've verified that the value assigned to
logEntry.ParquetTimestamp
is not 0 at this point.However it appears that I always wind up with a 0 timestamp in the parquet files. Using
parquet cat
to dump the file, I seeCan anyone tell me what I'm doing wrong?