xianzhe-databricks commented on code in PR #52467:
URL: https://github.com/apache/spark/pull/52467#discussion_r2411748646
##########
python/pyspark/sql/conversion.py:
##########
@@ -735,7 +744,11 @@ def convert(
@staticmethod # type: ignore[misc]
def convert(
- table: "pa.Table", schema: StructType, *, return_as_tuples: bool =
False
+ table: "pa.Table",
+ schema: StructType,
+ *,
+ return_as_tuples: bool = False,
+ binary_as_bytes: bool = True,
Review Comment:
it is already controlled by a flag, as `binary_as_bytes` is passed at
caller's place as the value of the SQL conf
`spark.sql.execution.pyspark.binaryAsBytes`.
It is not possible, or against the style, to access the SQL conf in this
conversion.py
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]