Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Aug 30, 2022
1 parent 17999d2 commit 8d6e435
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 205 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ link:https://github.com/rajasekarv/vega[vega], etc. It also provides bindings to

* Local file system
* AWS S3
* Azure Data Lake Storage Gen 2 (link:docs/ADLSGen2-HOWTO.md[HOW-TO])
* Azure Blob Storage / Azure Datalake Storage Gen2
* Google Cloud Storage

.Support features
Expand Down
3 changes: 0 additions & 3 deletions TODO

This file was deleted.

46 changes: 0 additions & 46 deletions build/setup_localstack.sh

This file was deleted.

14 changes: 0 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,3 @@ services:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- 10000:10000

# setup-localstack:
# image: localstack/localstack:0.14.4
# depends_on:
# - localstack
# entrypoint: "/bin/bash"
# command:
# - /setup_localstack.sh
# volumes:
# - "./build/setup_localstack.sh:/setup_localstack.sh"
# - "./rust/tests/data/golden:/data/golden"
# - "./rust/tests/data/simple_table:/data/simple_table"
# - "./rust/tests/data/simple_commit:/data/simple_commit"
# - "./rust/tests/data/concurrent_workers:/data/concurrent_workers"
47 changes: 0 additions & 47 deletions docs/ADLSGen2-HOWTO.md

This file was deleted.

70 changes: 0 additions & 70 deletions rust/src/delta_dataframe.rs

This file was deleted.

2 changes: 0 additions & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ pub mod vacuum;
pub mod checkpoints;
#[cfg(all(feature = "arrow", feature = "parquet"))]
pub mod delta_arrow;
#[cfg(feature = "rust-dataframe-ext")]
mod delta_dataframe;
#[cfg(feature = "datafusion-ext")]
pub mod delta_datafusion;
#[cfg(feature = "datafusion-ext")]
Expand Down
32 changes: 10 additions & 22 deletions rust/tests/integration_object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ async fn test_object_store(integration: StorageIntegration, skip_copy: bool) ->
}

async fn put_get_delete_list(storage: &DynObjectStore) -> TestResult {
let store_str = storage.to_string();

delete_fixtures(storage).await?;

let content_list = flatten_list_stream(storage, None).await?;
Expand Down Expand Up @@ -121,26 +119,16 @@ async fn put_get_delete_list(storage: &DynObjectStore) -> TestResult {
let out_of_range = 200..300;
let out_of_range_result = storage.get_range(&location, out_of_range).await;

if store_str.starts_with("MicrosoftAzureEmulator") {
// Azurite doesn't support x-ms-range-get-content-crc64 set by Azure SDK
// https://github.com/Azure/Azurite/issues/444
let err = range_result.unwrap_err().to_string();
assert!(err.contains("x-ms-range-get-content-crc64 header or parameter is not supported in Azurite strict mode"), "{}", err);

let err = out_of_range_result.unwrap_err().to_string();
assert!(err.contains("x-ms-range-get-content-crc64 header or parameter is not supported in Azurite strict mode"), "{}", err);
} else {
let bytes = range_result?;
assert_eq!(bytes, expected_data.slice(range));

// Should be a non-fatal error
out_of_range_result.unwrap_err();

let ranges = vec![0..1, 2..3, 0..5];
let bytes = storage.get_ranges(&location, &ranges).await?;
for (range, bytes) in ranges.iter().zip(bytes) {
assert_eq!(bytes, expected_data.slice(range.clone()))
}
let bytes = range_result?;
assert_eq!(bytes, expected_data.slice(range));

// Should be a non-fatal error
out_of_range_result.unwrap_err();

let ranges = vec![0..1, 2..3, 0..5];
let bytes = storage.get_ranges(&location, &ranges).await?;
for (range, bytes) in ranges.iter().zip(bytes) {
assert_eq!(bytes, expected_data.slice(range.clone()))
}

let head = storage.head(&location).await?;
Expand Down

0 comments on commit 8d6e435

Please sign in to comment.