-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] time travel add datetime format #2491
Conversation
-- read the snapshot from specified datetime | ||
-- Supported formats include:yyyy,yyyy-MM,yyyy-MM-dd, yyyy-MM-dd HH, yyyy-MM-dd HH:mm, yyyy-MM-dd HH:mm:ss, yyyy-MM-dd HH:mm:ss.SSS | ||
-- default local time zone,If you need to specify a time zone, please end with '/UTC{offset}',for example: 2023-12-11 12:12/UTC+8 | ||
SELECT * FROM t /*+ OPTIONS('scan.datetime' = '2023-12-09 23:09') */; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just scan.timestamp
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JingsongLi Please recheck! |
* @param timestampString | ||
* @return | ||
*/ | ||
public static Timestamp autoFormatToTimestamp(String timestampString) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just use parseTimestampData
? It is very confused to introduce another parser here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JingsongLi Fixed,Please recheck!
# Conflicts: # docs/content/flink/sql-query.md # paimon-common/src/main/java/org/apache/paimon/CoreOptions.java # paimon-flink/paimon-flink-1.14/src/test/java/org/apache/paimon/flink/BatchFileStoreITCase.java
This reverts commit 8b90bc6.
+1 thanks @seawenc for the contribution! |
Purpose
Linked issue: #2475
Tests
unit test is paas
integration testing:
flink test
hive test