You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_load_data_in_delta_format_located_in_public_bucket_in_aws_s3_with_valid_credentials(minio_server, rp_logger):
rp_logger.info("Loading data in Delta format from the public bucket in AWS S3 with valid credentials")
table = DeltaTable(
"s3://public-bucket/delta_tables/table_with_data/",
storage_options={
"AWS_ACCESS_KEY_ID": AWS_ACCESS_KEY_ID,
"AWS_SECRET_ACCESS_KEY": AWS_SECRET_ACCESS_KEY,
"AWS_REGION": "eu-central-1",
"AWS_ENDPOINT_URL": "http://localhost:9000"
})
df = table.to_pandas()
assert assert_frame_equal(
df, pd.DataFrame(
{
"gender": [0, 1, 0, 1],
"height": [157.18518021548246, 166.7731072622863, 162.91821942384928, 173.51448996432848],
"id": [925, 84, 821, 383]
}
)
) is None
The error - deltalake.PyDeltaTableError: Failed to load checkpoint: Failed to read checkpoint content: Generic S3 error: Error performing get request delta_tables/table_with_data/_delta_log/_last_checkpoint: response error "request error", after 0 retries: builder error for URL (http://localhost:9000/public-bucket/delta_tables/table_with_data/_delta_log/_last_checkpoint): URL scheme is not allowed
What you expected to happen:
The test should be passed
The text was updated successfully, but these errors were encountered:
It's not well documented, but you have to explicitly allow for non-https urls. Try passing in "allow_hhtp": "true" as an additional option, and it should hoepfully work.
Environment
Delta-rs version:
0.6.3
Binding:
Environment:
Bug
What happened:
The test failed:
The error - deltalake.PyDeltaTableError: Failed to load checkpoint: Failed to read checkpoint content: Generic S3 error: Error performing get request delta_tables/table_with_data/_delta_log/_last_checkpoint: response error "request error", after 0 retries: builder error for URL (http://localhost:9000/public-bucket/delta_tables/table_with_data/_delta_log/_last_checkpoint): URL scheme is not allowed
What you expected to happen:
The test should be passed
The text was updated successfully, but these errors were encountered: