-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: propagate storage_options to LanceFragment.create and LanceDatas…
…et.commit (#2547) ## How is this tested? Install the package with local change: `maturin develop` Verified the following code did not work before and worked after the changes. ``` import pyarrow as pa import lance from lance.fragment import LanceFragment, FragmentMetadata uri = 's3://xxxxx' storage_options = { 'aws_access_key_id': 'xxx', 'aws_secret_access_key': 'xxx' } data = pa.table({"a": [1, 2], "b": ["a", "b"]}) fragment = LanceFragment.create(uri, data, storage_options=storage_options) fragment = FragmentMetadata.from_json(fragment._metadata.json()) operation = lance.LanceOperation.Overwrite(tab1.schema, fragments=[fragment]) dataset = lance.LanceDataset.commit(uri, operation, storage_options=storage_options) ```
- Loading branch information
1 parent
f2ca181
commit c132ec9
Showing
4 changed files
with
36 additions
and
5 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
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
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