Skip to content

Spark: Add session property for time-travel default timestamp#15193

Open
michalheld wants to merge 1 commit intoapache:mainfrom
michalheld:15163
Open

Spark: Add session property for time-travel default timestamp#15193
michalheld wants to merge 1 commit intoapache:mainfrom
michalheld:15163

Conversation

@michalheld
Copy link

Adds spark.sql.iceberg.read.as-of-timestamp session property to allow setting a default timestamp for time-travel queries across all table reads when no explicit snapshot-id, as-of-timestamp, branch, or tag is specified.

Closes #15163

@michalheld
Copy link
Author

CC: @RussellSpitzer

Copy link
Member

@jzhuge jzhuge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michalheld
Copy link
Author

@bryanck @RussellSpitzer
Can I ask for your review?

@bryanck
Copy link
Contributor

bryanck commented Mar 3, 2026

Thanks for the PR @michalheld , can you update this to only apply to the latest version of Spark (4.1)? The general approach the Iceberg community takes is to first make a change to the latest version of Spark, once that is merged, open PRs to backport to other versions of Spark.

@michalheld
Copy link
Author

Thanks @bryanck for the review. I have removed changes from versions other than Spark 4.1.

@yingjianwu98
Copy link
Contributor

Also I think there is a major change in Spark 4.1 that will impact this and you might want to rebase on top of it.

@michalheld michalheld force-pushed the 15163 branch 2 times, most recently from fe3a293 to 96d6064 Compare March 24, 2026 16:22
Adds spark.sql.iceberg.read.as-of-timestamp session property to allow setting a default timestamp for time-travel queries across all table reads when no explicit snapshot-id, as-of-timestamp, branch, or tag is specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session-level time-travel

5 participants