From b6e32b8928afc34464ef03021275ddd328761397 Mon Sep 17 00:00:00 2001 From: ion-elgreco <15728914+ion-elgreco@users.noreply.github.com> Date: Sun, 12 Nov 2023 15:05:59 +0100 Subject: [PATCH] comment out mode for now --- python/deltalake/__init__.py | 2 +- python/src/lib.rs | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/python/deltalake/__init__.py b/python/deltalake/__init__.py index a0d2b346b2..b10a708309 100644 --- a/python/deltalake/__init__.py +++ b/python/deltalake/__init__.py @@ -6,5 +6,5 @@ from .schema import Schema as Schema from .table import DeltaTable as DeltaTable from .table import Metadata as Metadata -from .writer import write_deltalake as write_deltalake from .writer import convert_to_deltalake as convert_to_deltalake +from .writer import write_deltalake as write_deltalake diff --git a/python/src/lib.rs b/python/src/lib.rs index 6b20f214b1..272c4040b0 100644 --- a/python/src/lib.rs +++ b/python/src/lib.rs @@ -1185,7 +1185,7 @@ fn write_new_deltalake( #[allow(clippy::too_many_arguments)] fn convert_to_deltalake( uri: String, - mode: &str, + // mode: &str, _partition_schema: Option>, partition_strategy: Option, name: Option, @@ -1194,10 +1194,9 @@ fn convert_to_deltalake( storage_options: Option>, custom_metadata: Option>, ) -> PyResult<()> { - let mode = save_mode_from_str(mode)?; - let mut builder = ConvertToDeltaBuilder::new() - .with_location(uri) - .with_save_mode(mode); + // let mode = save_mode_from_str(mode)?; + let mut builder = ConvertToDeltaBuilder::new().with_location(uri); + // .with_save_mode(mode); // if let Some(part_schema) = partition_schema { // builder = builder.with_partition_schema(part_schema); // Convert type properly in struct field