-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 endpoint configuration #1169 #1172
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
39cac68
S3 endpoint configuration #1169
mike0sv 01def7f
Add allow_no_value=True to ConfigParser
mike0sv e8d8800
Merge branch 'master' into master_mike0sv
mike0sv 6aa943f
New constants API
mike0sv caf1f6d
fix for other types of get
mike0sv ca3ce66
return to the old logic and some testing
mike0sv 2684151
oooopsie
mike0sv 1f181f7
remove DEFAULTS logic changes
mike0sv 8e7dab4
reformat
mike0sv b94d109
Merge branch 'master' into with_defaults
mike0sv 61e2ce9
Merge branch 'with_defaults' into master_mike0sv
mike0sv 081288d
_upload_to_file_source docs
mike0sv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
import pyarrow as pa | ||
from pyarrow import parquet as pq | ||
|
||
from feast.config import Config | ||
from feast.staging.storage_client import get_staging_client | ||
|
||
|
||
|
@@ -166,7 +167,7 @@ def _read_table_from_source( | |
|
||
|
||
def _upload_to_file_source( | ||
file_url: str, with_partitions: bool, dest_path: str | ||
file_url: str, with_partitions: bool, dest_path: str, config: Config | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the arguments in the docstring is out of date. Would you mind updating? |
||
) -> None: | ||
""" | ||
Uploads data into a FileSource. Currently supports GCS, S3 and Local FS. | ||
|
@@ -177,7 +178,7 @@ def _upload_to_file_source( | |
from urllib.parse import urlparse | ||
|
||
uri = urlparse(file_url) | ||
staging_client = get_staging_client(uri.scheme) | ||
staging_client = get_staging_client(uri.scheme, config) | ||
|
||
if with_partitions: | ||
for path in glob.glob(os.path.join(dest_path, "**/*")): | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, I think you should submit this change as part of a separate PR please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created new PR, it seems it needs to be merged before this one