nicovak opened a new issue, #8512: URL: https://github.com/apache/pinot/issues/8512
Hello, I think It could be a nice feature to handle optional parts in date format with `[]` For example in my case, I can have DateTime with second fractions or not (it's adaptive). Actually, I need to perform a `Substr` : ```json FromDateTime(Substr(JSONPATH(payload, '$.created_at'), 0, 19), 'yyyy-MM-dd''T''HH:mm:ss''Z''') ``` But It could be handled like that : ```json FromDateTime(JSONPATH(payload, '$.created_at'), 'yyyy-MM-dd''T''HH:mm:ss[.SSS]''Z''') ``` It's already provided by Java 8 and [DateTimeFormatter](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html), in documentation we have : ``` [ optional section start ] optional section end ``` -- 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]
