Closed abyssnlp closed 3 months ago
This change should make it okay to proceed with #81
Possible fix for #108
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.42%. Comparing base (
b3ffa32
) to head (ea9726c
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@abyssnlp thanks for the fix. refactored a bit. can you verify this change e2e in your env please? would love to unblock the minio integ test!
@xushiyan I verified it for 3 scenarios and it works as expected.
HudiDataSource
with AWS S3 (AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_DEFAULT_REGION
in the env vars)HudiDataSource
with local FSHudiDataSource
with minio (requires the AWS env var AWS_ENDPOINT
and ALLOW_HTTP
)
let hudi = HudiDataSource::new_with_options(
"s3://test-bucket/v6_nonpartitioned",
vec![
("allow_http", "true"),
],
)
.await?;
Description
Reading Hudi tables from an object store, s3 in this case, was failing due to the object store not being registered with Datafusion.
Before the changes in this PR, the following error was encountered:
Datafusion requires the object store to be registered. Refer here.
Note
Storage
andFileSystemView
have public struct fieldsobject_store
andstorage
. There should be a better way to expose these to thedatafusion
crate to be able to register them.How are the changes test-covered