mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-22 16:18:10 +00:00
feat(ingest/dbt-core): support fetching using the s3a protocol (#12465)
Co-authored-by: hzhang <hzhang@ssnc-corp.global>
This commit is contained in:
parent
6acd94b436
commit
c8e88aef09
@ -488,7 +488,7 @@ class DBTCoreSource(DBTSourceBase, TestableSource):
|
||||
) -> Dict:
|
||||
if re.match("^https?://", uri):
|
||||
return json.loads(requests.get(uri).text)
|
||||
elif re.match("^s3://", uri):
|
||||
elif is_s3_uri(uri):
|
||||
u = urlparse(uri)
|
||||
assert aws_connection
|
||||
response = aws_connection.get_s3_client().get_object(
|
||||
|
Loading…
x
Reference in New Issue
Block a user