[
https://issues.apache.org/jira/browse/HIVE-25344?focusedWorklogId=628460&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-628460
]
ASF GitHub Bot logged work on HIVE-25344:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Jul/21 13:52
Start Date: 27/Jul/21 13:52
Worklog Time Spent: 10m
Work Description: pvary commented on a change in pull request #2512:
URL: https://github.com/apache/hive/pull/2512#discussion_r677471435
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java
##########
@@ -1261,4 +1275,19 @@ public boolean equalsWithIgnoreWriteId(Table tbl ) {
return result;
}
+ public long getAsOfVersion() {
+ return asOfVersion;
+ }
+
+ public void setAsOfVersion(long asOfVersion) {
Review comment:
Let's think about this, because this is an interesting question. One
consequence is that:
- Instead of this `SELECT * FROM customers FOR SYSTEM_VERSION AS OF 12345678`
- We have to use `SELECT * FROM customers FOR SYSTEM_VERSION AS OF
'12345678'`
Notice that we have to use `'` (quotes) for the string
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 628460)
Time Spent: 1h 20m (was: 1h 10m)
> Add a possibility to query Iceberg table snapshots based on the timestamp or
> the snapshot id
> --------------------------------------------------------------------------------------------
>
> Key: HIVE-25344
> URL: https://issues.apache.org/jira/browse/HIVE-25344
> Project: Hive
> Issue Type: New Feature
> Reporter: Peter Vary
> Assignee: Peter Vary
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Implement the following commands:
> {code:java}
> SELECT * FROM t FOR SYSTEM_TIME AS OF <timestamp>;
> SELECT * FROM t FOR SYSTEM_VERSION AS OF <version>;{code}
> where SYSTEM_TIME is the Iceberg table state at the given timestamp (UTC), or
> SYSTEM_VERSION is the Iceberg table snapshot id.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)