I am getting 1970-01-01 00:00:00.0 in a column but...
# troubleshooting
a
I am getting 1970-01-01 000000.0 in a column but same column mapped with string showing correct value, FYI i have multiple timestamp columns and only a column that is defined a "timeColumnName" is showing correct date, can you please help (pinot version 1.2.0) { "name": "EventDateNew", "dataType": "STRING", "notNull": false }, { "name": "EventDate", "dataType": "TIMESTAMP", "notNull": false },
m
Either you have nulls or the time column is not in specified format so it defaults to epoch 0
a
@Mayank you can see, i populated same column as string and i can see the proper format(can you please validate in screenshot) and let me know if any other reason can cause this? I also tried to change timeColumnName to Eventdate, it started populating correct time, but other column change to 1970 date, Something weird happening.
@Xiang Fu @Mayank Any help appreciated.
x
what’s the real value of EventDate during the ingestion? I think it’s not parsed correctly
a
2025-03-07T102819+00:00 is the value
x
you need to configure the timstamp format for event date column
a
Able to fix the issue, time was in UTC and need to use DatetimeConverter in transformation function to remove the UTC timezone stuff 00:00 or Z
DATETIMECONVERT(Event_Date, '1MILLISECONDSSIMPLE_DATE_FORMAT:yyyy-MM-dd''T''HHmmss.SSSSSSS''Z''', '1MILLISECONDSSIMPLE_DATE_FORMAT:yyyy-MM-dd HHmmss.SSSSSSS', '1:MILLISECONDS')
and DATETIMECONVERT(Event_Date, '1MILLISECONDSSIMPLE_DATE_FORMAT:yyyy-MM-dd''T''HHmmss.SSSSSSS''+00:00''', '1MILLISECONDSSIMPLE_DATE_FORMAT:yyyy-MM-dd HHmmss.SSSSSSS', '1:MILLISECONDS')