HJK181 commented on issue #7262:
URL: https://github.com/apache/pinot/issues/7262#issuecomment-898216662
Oh one more point,
what I also was not able to accomplish is using the default value for my
date time field. I tried
```
"transformFunction": "Groovy({mappingTime == -1 ? null : mappingTime},
mappingTime)"
```
and
```
"transformFunction": "Groovy({mappingTime == -1 ? 0 : mappingTime},
mappingTime)"
```
Both resulting in
```
java.lang.IllegalStateException: Invalid segment start/end time:
-292275055-05-16T16:47:04.192Z/-292275055-05-16T16:47:04.192Z (in millis:
-9223372036854775808/-9223372036854775808) for time column: mappingTs, must be
between: 1971-01-01T00:00:00.000Z/2071-01-01T00:00:00.000Z
```
According to the docs, the default value for timestamp fields is `TIMESTAMP
0 (1970-01-01 00:00:00 UTC)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]