leonardBang commented on a change in pull request #18058:
URL: https://github.com/apache/flink/pull/18058#discussion_r772819208
##########
File path:
flink-connectors/flink-connector-elasticsearch-base/src/main/java/org/apache/flink/connector/elasticsearch/table/IndexGeneratorFactory.java
##########
@@ -176,6 +207,8 @@ private static DynamicFormatter createFormatFunction(
private static final Pattern dynamicIndexPattern =
Pattern.compile("\\{[^\\{\\}]+\\}?");
private static final Pattern dynamicIndexTimeExtractPattern =
Pattern.compile(".*\\{.+\\|.*\\}.*");
+ private static final Pattern dynamicIndexProcTimeExtractPattern =
+ Pattern.compile(".*\\{now\\(\\)\\|.*\\}.*");
Review comment:
I think following functions should also works, right?
`now()`
`NOW()`
`current_timestamp`
`CURRENT_TIMESTAMP`
--
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]