diff --git a/Cargo.lock b/Cargo.lock index d720ec5d..173e877b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3946,6 +3946,7 @@ dependencies = [ "async-trait", "async_cell", "aws-credential-types", + "aws-sdk-dynamodb", "byteorder", "bytes", "chrono", @@ -4294,6 +4295,8 @@ dependencies = [ "arrow-ipc", "arrow-schema", "async-trait", + "aws-credential-types", + "aws-sdk-dynamodb", "byteorder", "bytes", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 248db0be..6ab050ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,9 @@ categories = ["database-implementations"] rust-version = "1.78.0" [workspace.dependencies] -lance = { "version" = "=0.31.2", "tag" = "v0.31.2-beta.3", "git" = "https://github.com/lancedb/lance.git" } +lance = { "version" = "=0.31.2", "features" = [ + "dynamodb", +], "tag" = "v0.31.2-beta.3", "git" = "https://github.com/lancedb/lance.git" } lance-io = { "version" = "=0.31.2", "tag" = "v0.31.2-beta.3", "git" = "https://github.com/lancedb/lance.git" } lance-index = { "version" = "=0.31.2", "tag" = "v0.31.2-beta.3", "git" = "https://github.com/lancedb/lance.git" } lance-linalg = { "version" = "=0.31.2", "tag" = "v0.31.2-beta.3", "git" = "https://github.com/lancedb/lance.git" } diff --git a/ci/set_lance_version.py b/ci/set_lance_version.py index f3a02093..a21f9a5b 100644 --- a/ci/set_lance_version.py +++ b/ci/set_lance_version.py @@ -47,10 +47,10 @@ def extract_features(line: str) -> list: """ import re - match = re.search(r'"features"\s*=\s*\[(.*?)\]', line) + match = re.search(r'"features"\s*=\s*\[\s*(.*?)\s*\]', line, re.DOTALL) if match: features_str = match.group(1) - return [f.strip('"') for f in features_str.split(",")] + return [f.strip('"') for f in features_str.split(",") if len(f) > 0] return [] @@ -63,10 +63,24 @@ def update_cargo_toml(line_updater): lines = f.readlines() new_lines = [] + lance_line = "" + is_parsing_lance_line = False for line in lines: if line.startswith("lance"): # Update the line using the provided function - new_lines.append(line_updater(line)) + if line.strip().endswith("}"): + new_lines.append(line_updater(line)) + else: + lance_line = line + is_parsing_lance_line = True + elif is_parsing_lance_line: + lance_line += line + if line.strip().endswith("}"): + new_lines.append(line_updater(lance_line)) + lance_line = "" + is_parsing_lance_line = False + else: + print("doesn't end with }:", line) else: # Keep the line unchanged new_lines.append(line)