delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.64k stars 1.71k forks source link

[Kernel] Support beforeOrAt and atOrAfter semantics for getting a commit version from a timestamp #3650

Closed allisonport-db closed 2 months ago

allisonport-db commented 2 months ago

Which Delta project/connector is this regarding?

Description

Adds the functions getVersionBeforeOrAtTimestamp and getVersionAtOrAfterTimestamp to TableImpl for use with the getChangesByVersion API to enable querying changes between two timestamps.

How was this patch tested?

Adds unit tests.