Skip to content

Commit

Permalink
chore: re-enable optional old casting behavior in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco authored and rtyler committed Sep 12, 2024
1 parent ad35eda commit cbe2265
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,13 +1000,18 @@ def merge(
commit_properties, custom_metadata
)

if large_dtypes:
if large_dtypes is not None:
warnings.warn(
"large_dtypes is deprecated",
category=DeprecationWarning,
stacklevel=2,
)
conversion_mode = ArrowSchemaConversionMode.PASSTHROUGH
if large_dtypes:
conversion_mode = ArrowSchemaConversionMode.LARGE
else:
conversion_mode = ArrowSchemaConversionMode.NORMAL
else:
conversion_mode = ArrowSchemaConversionMode.PASSTHROUGH

from .schema import (
convert_pyarrow_dataset,
Expand Down

0 comments on commit cbe2265

Please sign in to comment.