Skip to content

Commit 1723097

Browse files
rename delta -> deltalake
1 parent 483c616 commit 1723097

File tree

9 files changed

+10
-14
lines changed

9 files changed

+10
-14
lines changed
File renamed without changes.

etl-destinations/src/delta/core.rs renamed to etl-destinations/src/deltalake/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::sync::Arc;
1111
use tokio::sync::RwLock;
1212
use tracing::{debug, info, trace, warn};
1313

14-
use crate::delta::{DeltaLakeClient, TableRowEncoder};
14+
use crate::deltalake::{DeltaLakeClient, TableRowEncoder};
1515

1616
/// Configuration for Delta Lake destination
1717
#[derive(Debug, Clone)]
File renamed without changes.
File renamed without changes.

etl-destinations/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#[cfg(feature = "bigquery")]
77
pub mod bigquery;
88
#[cfg(feature = "deltalake")]
9-
pub mod delta;
9+
pub mod deltalake;
1010
#[cfg(feature = "iceberg")]
1111
pub mod iceberg;
1212
mod metrics;

etl-destinations/tests/delta_test.rs renamed to etl-destinations/tests/deltalake_pipeline.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ use deltalake::arrow::array::RecordBatch;
2020
use deltalake::kernel::DataType as DeltaDataType;
2121
use deltalake::operations::collect_sendable_stream;
2222

23-
use crate::support::delta::{MinioDeltaLakeDatabase, setup_delta_connection};
23+
use crate::support::deltalake::{MinioDeltaLakeDatabase, setup_delta_connection};
24+
25+
mod support;
2426

2527
/// Helper functions for Delta Lake table verification
2628
mod delta_verification {
@@ -1146,7 +1148,7 @@ async fn comprehensive_data_type_mapping() {
11461148
async fn test_cdc_deduplication_and_conflict_resolution() {
11471149
init_test_tracing();
11481150

1149-
let mut database = spawn_source_database().await;
1151+
let database = spawn_source_database().await;
11501152
let database_schema = setup_test_database_schema(&database, TableSelection::UsersOnly).await;
11511153

11521154
let delta_database = setup_delta_connection().await;
@@ -1239,16 +1241,9 @@ async fn test_cdc_deduplication_and_conflict_resolution() {
12391241
pipeline.shutdown_and_wait().await.unwrap();
12401242

12411243
// Verify the final state after CDC processing
1242-
let final_count = delta_verification::count_table_rows(&delta_database, users_table)
1244+
let _final_count = delta_verification::count_table_rows(&delta_database, users_table)
12431245
.await
12441246
.expect("Should be able to count rows");
1245-
1246-
println!("Final row count after CDC operations: {}", final_count);
1247-
// The exact count depends on Delta's implementation, but operations should complete successfully
1248-
assert!(
1249-
final_count >= 0,
1250-
"Table operations should complete successfully"
1251-
);
12521247
}
12531248

12541249
/// Test handling of concurrent transactions with different commit orders

etl-destinations/tests/support/delta.rs renamed to etl-destinations/tests/support/deltalake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use deltalake::{DeltaResult, DeltaTable};
44
use etl::store::schema::SchemaStore;
55
use etl::store::state::StateStore;
66
use etl::types::TableName;
7-
use etl_destinations::delta::{DeltaDestinationConfig, DeltaLakeClient, DeltaLakeDestination};
7+
use etl_destinations::deltalake::{DeltaDestinationConfig, DeltaLakeClient, DeltaLakeDestination};
88
use std::collections::HashMap;
99
use std::env;
1010
use std::sync::Arc;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pub mod bigquery;
2+
pub mod deltalake;
23
pub mod lakekeeper;

etl-replicator/src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use etl_config::shared::{
1212
};
1313
use etl_destinations::{
1414
bigquery::{BigQueryDestination, install_crypto_provider_for_bigquery},
15-
delta::{DeltaDestinationConfig, DeltaLakeDestination},
15+
deltalake::{DeltaDestinationConfig, DeltaLakeDestination},
1616
};
1717
use secrecy::ExposeSecret;
1818
use tokio::signal::unix::{SignalKind, signal};

0 commit comments

Comments
 (0)