Doc : Document time travel via SPARK SQL #4707
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At present
AS OF
grammar is not supported in SPARK-SQL (was added in Spark 3.3 via SPARK-37219).On digging more in the code found that there was a work-around adopted by the community until this grammar is supported in SPARK itself, by using
at_timestamp_
,snapshot_id_
iceberg/spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/SparkCatalog.java
Lines 545 to 555 in bf582eb
Presently the docs stated
Time travel is not yet supported by Spark's SQL syntax.
which can be worked around with the functionalities present. This PR attempts to document that.cc @rdblue @jackye1995 @RussellSpitzer