xianzhe-databricks commented on code in PR #52467: URL: https://github.com/apache/spark/pull/52467#discussion_r2390358418
########## docs/sql-ref-datatypes.md: ########## @@ -131,7 +131,7 @@ from pyspark.sql.types import * |**StringType**|str|StringType()| |**CharType(length)**|str|CharType(length)| |**VarcharType(length)**|str|VarcharType(length)| -|**BinaryType**|bytearray|BinaryType()| +|**BinaryType**|bytearray<br/>**Note:** When Arrow is enabled (`spark.sql.execution.arrow.pyspark.enabled=true`), BinaryType maps to `bytes` instead of `bytearray`.|BinaryType()| |**BooleanType**|bool|BooleanType()| Review Comment: make sense. And to keep consistency, I actually should change the data type for all UDFs (including the non-arrow regular UDF) -- 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]
