Diogo Baeder
11/11/2021, 5:47 PM1:MILLISECONDS:EPOCH, and I'm publishing Kafka events containing timestamps that are basically int(time_in_seconds_as_float * 1000) from a Python-based app, but when I use the incubator to query the table I'm getting back negative values. I'm probably doing something wrong, but isn't the idea to publish the time, in milliseconds, since Epoch (1970-01-01 000000)?Mayank
time_in_seconds_as_float generated? I am guessing it is not in EPOCH?Diogo Baeder
11/11/2021, 6:01 PMdatetime.timestamp(), but it follows the same specifications, so it's the time since Epoch in seconds, but as a float containing digits for microsecond resolution.Mayank
Diogo Baeder
11/11/2021, 6:21 PM"dateTimeFieldSpecs": [
{
"name": "timestamp",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
]
and here's the relevant part of the table config:
"segmentsConfig": {
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
"replicasPerPartition": "1",
"schemaName": "bb8_analyses_logs_schema"
},Mayank
Diogo Baeder
11/11/2021, 7:36 PMint is actually implemented as long, so there's no problem with that. I'll do some experiments and try tinkering with it. Is it possible to define seconds as float in Pinot? Like using dataType as FLOAT, then defining the format as 1:SECONDS:EPOCH?Diogo Baeder
11/11/2021, 7:57 PMDiogo Baeder
11/11/2021, 8:45 PM1572678000000, and I forced that as a value for my timestamp, but it's still giving me -9223372036854775808 from the results in the incubator...Diogo Baeder
11/11/2021, 8:55 PMMayank