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: commits-unsubscr...@pinot.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org