Skip to content

feat: support namespace vended credentials for write#5161

Merged
jackye1995 merged 4 commits intolance-format:mainfrom
jackye1995:vending-write
Nov 16, 2025
Merged

feat: support namespace vended credentials for write#5161
jackye1995 merged 4 commits intolance-format:mainfrom
jackye1995:vending-write

Conversation

@jackye1995
Copy link
Copy Markdown
Contributor

@jackye1995 jackye1995 commented Nov 6, 2025

This PR extends upon #4905 for 2 features:

  1. when writing, the dataset might not exist yet, we add convenient method write_into_namespace which calls namespace.create_empty_table to create the empty table, get its URI and storage options to use (if any), and use that to create the table.
  2. pass in storage options provider to:
    1. write_fragments for distributed write
    2. Lance file writer for callers that write individual lance files in the same table directory but not in the lance table

note: this PR only offers rust and python implementation, java will be added later

@jackye1995 jackye1995 marked this pull request as draft November 6, 2025 06:33
@github-actions github-actions Bot added enhancement New feature or request java labels Nov 6, 2025
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread java/lance-jni/src/blocking_dataset.rs
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 78.51852% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.27%. Comparing base (417b9a8) to head (1dca605).

Files with missing lines Patch % Lines
rust/lance/src/dataset.rs 40.62% 53 Missing and 4 partials ⚠️
rust/lance-namespace-impls/src/dir/manifest.rs 94.44% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5161      +/-   ##
==========================================
+ Coverage   82.25%   82.27%   +0.01%     
==========================================
  Files         344      344              
  Lines      144636   144901     +265     
  Branches   144636   144901     +265     
==========================================
+ Hits       118967   119211     +244     
- Misses      21742    21755      +13     
- Partials     3927     3935       +8     
Flag Coverage Δ
unittests 82.27% <78.51%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jackye1995 jackye1995 force-pushed the vending-write branch 3 times, most recently from b616759 to e88f45f Compare November 16, 2025 04:21
@jackye1995 jackye1995 assigned jackye1995 and unassigned jackye1995 Nov 16, 2025
@jackye1995 jackye1995 marked this pull request as ready for review November 16, 2025 08:29
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread python/python/lance/file.py
@jackye1995 jackye1995 merged commit a5119f9 into lance-format:main Nov 16, 2025
25 checks passed
jackye1995 added a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
This PR extends upon lance-format#4905 for 2 features:
1. when writing, the dataset might not exist yet, we add convenient
method `write_into_namespace` which calls `namespace.create_empty_table`
to create the empty table, get its URI and storage options to use (if
any), and use that to create the table.
2. pass in storage options provider to:
    1. write_fragments for distributed write
2. Lance file writer for callers that write individual lance files in
the same table directory but not in the lance table

note: this PR only offers rust and python implementation, java will be
added later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants