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
What happened:
The unit test failed during the process of reading the data from the blob storage located in the Azurite container.
from deltalake import DeltaLake
AZURE_STORAGE_CONNECTION_STRING = "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;" \
"AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsu" \
"Fq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;" \
"BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1"
def test_load_data_from_table_in_delta_format_located_in_azure_storage_with_valid_connection_string(rp_logger):
rp_logger.info("Loading data from the table in Delta format located in Azure Storage "
"with valid 'AZURE_STORAGE_CONNECTION_STRING'")
path = "azure://test-container/delta_tables/table_with_data"
table = DeltaTable(
path,
storage_options={
"AZURE_STORAGE_CONNECTION_STRING": AZURE_STORAGE_CONNECTION_STRING,
"AZURE_STORAGE_ACCOUNT_NAME": "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsu",
"AZURE_STORAGE_ACCOUNT_KEY": "devstoreaccount1",
"allow_http": "true"}
)
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
assert isinstance(df, pd.DataFrame)
rp_logger.info(SUCCESSFUL_MESSAGE)
There is the following error:
deltalake.PyDeltaTableError: Failed to load checkpoint: Failed to read checkpoint content: Generic MicrosoftAzure error: Error performing get request delta_tables/table_with_
data/_delta_log/_last_checkpoint: response error "request error", after 0 retries: error sending request for url (https://eby8vdm02xnocqflquwjpllmetlcdxj1ouzft50usrz6ifsu.blob.core.w
indows.net/test-container/delta_tables/table_with_data/_delta_log/_last_checkpoint): error trying to connect: dns error: No such host is known. (os error 11001)
The text was updated successfully, but these errors were encountered:
account name and account key are switched :). for azurite you do have to pass the option "use_emulator": "true" though, since we have not implemented connection string parsing, and the url handling for azurite needs to be a bit different.
Environment
Delta-rs version: 0.9.0
Binding:
Environment:
Bug
What happened:
The unit test failed during the process of reading the data from the blob storage located in the Azurite container.
There is the following error:
The text was updated successfully, but these errors were encountered: