Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions python/pyspark/sql/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _create_converter(
dataType: DataType,
nullable: bool = True,
*,
none_on_identity: bool = True,
none_on_identity: bool = False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @ueshin on this change.

int_to_decimal_coercion_enabled: bool = False,
) -> Optional[Callable]:
pass
Expand Down Expand Up @@ -811,7 +811,9 @@ def convert(table: "pa.Table", schema: StructType, *, binary_as_bytes: bool) ->

@overload
@staticmethod
def convert(table: "pa.Table", schema: StructType, *, return_as_tuples: bool) -> List[tuple]:
def convert(
table: "pa.Table", schema: StructType, *, return_as_tuples: bool
) -> List[Row | tuple]:
pass

@staticmethod # type: ignore[misc]
Expand Down