-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #588 This PR takes a different course from what was proposed in #588 and the subsequent PR #605. Rather than using the existing `tag` field in the manifest, this PR adds a new directory at the root of the dataset called `_refs/tags`. This new directory contains files, where each filename maps to a JSON that contains the version number. When a user wants to checkout a specific tag, we do a lookup to find the version number, and then simply call `checkout_version` under-the-hood. By considering tags outside of the manifests file, we get the following benefits (all of which are consistent with the more familiar git tag): - Allow users to freely create and delete tags retroactively. - Allow multiple tags to point to the same underlying version. - Easily enforce that tag names are unique. - Allow users to re-use a previously deleted tags(so long as the name is unique among all other tags at the time of reuse). --------- Co-authored-by: Will Jones <[email protected]>
- Loading branch information
Showing
11 changed files
with
861 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ exclude = ["python"] | |
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "0.15.1" | ||
version = "0.16.0" | ||
edition = "2021" | ||
authors = ["Lance Devs <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -44,20 +44,20 @@ categories = [ | |
rust-version = "1.78" | ||
|
||
[workspace.dependencies] | ||
lance = { version = "=0.15.1", path = "./rust/lance" } | ||
lance-arrow = { version = "=0.15.1", path = "./rust/lance-arrow" } | ||
lance-core = { version = "=0.15.1", path = "./rust/lance-core" } | ||
lance-datafusion = { version = "=0.15.1", path = "./rust/lance-datafusion" } | ||
lance-datagen = { version = "=0.15.1", path = "./rust/lance-datagen" } | ||
lance-encoding = { version = "=0.15.1", path = "./rust/lance-encoding" } | ||
lance-encoding-datafusion = { version = "=0.15.1", path = "./rust/lance-encoding-datafusion" } | ||
lance-file = { version = "=0.15.1", path = "./rust/lance-file" } | ||
lance-index = { version = "=0.15.1", path = "./rust/lance-index" } | ||
lance-io = { version = "=0.15.1", path = "./rust/lance-io" } | ||
lance-linalg = { version = "=0.15.1", path = "./rust/lance-linalg" } | ||
lance-table = { version = "=0.15.1", path = "./rust/lance-table" } | ||
lance-test-macros = { version = "=0.15.1", path = "./rust/lance-test-macros" } | ||
lance-testing = { version = "=0.15.1", path = "./rust/lance-testing" } | ||
lance = { version = "=0.16.0", path = "./rust/lance" } | ||
lance-arrow = { version = "=0.16.0", path = "./rust/lance-arrow" } | ||
lance-core = { version = "=0.16.0", path = "./rust/lance-core" } | ||
lance-datafusion = { version = "=0.16.0", path = "./rust/lance-datafusion" } | ||
lance-datagen = { version = "=0.16.0", path = "./rust/lance-datagen" } | ||
lance-encoding = { version = "=0.16.0", path = "./rust/lance-encoding" } | ||
lance-encoding-datafusion = { version = "=0.16.0", path = "./rust/lance-encoding-datafusion" } | ||
lance-file = { version = "=0.16.0", path = "./rust/lance-file" } | ||
lance-index = { version = "=0.16.0", path = "./rust/lance-index" } | ||
lance-io = { version = "=0.16.0", path = "./rust/lance-io" } | ||
lance-linalg = { version = "=0.16.0", path = "./rust/lance-linalg" } | ||
lance-table = { version = "=0.16.0", path = "./rust/lance-table" } | ||
lance-test-macros = { version = "=0.16.0", path = "./rust/lance-test-macros" } | ||
lance-testing = { version = "=0.16.0", path = "./rust/lance-testing" } | ||
approx = "0.5.1" | ||
# Note that this one does not include pyarrow | ||
arrow = { version = "52.2", optional = false, features = ["prettyprint"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
# limitations under the License. | ||
|
||
"""Microbenchmark for performance""" | ||
|
||
import shutil | ||
import time | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pylance" | ||
version = "0.15.1" | ||
version = "0.16.0" | ||
edition = "2021" | ||
authors = ["Lance Devs <[email protected]>"] | ||
rust-version = "1.65" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.