Hisoka-X commented on PR #41531: URL: https://github.com/apache/spark/pull/41531#issuecomment-1586537465
> Can you ensure MySQL or Snowflake's behaviors are client-side or server-side? Snowflake can config binary store type (default hex) or display type (default dex). Refer https://docs.snowflake.com/en/user-guide/binary-input-output https://docs.snowflake.com/en/user-guide/binary-input-output#file-format-option-for-loading-unloading-binary-values I'm not sure about MySQL server behaviors, only said `store byte strings` in the doc.  https://dev.mysql.com/doc/refman/8.0/en/binary-varbinary.html > Changes here do break for the JDBC ResultSet.getObject function, which coverts this binary string to byte array again. @yaooqinn Thanks for guidance. So I think add a config `spark.sql.hive.bytesToHex` for spark-sql will be reasonable. Or add a parameter to identify whether the invoke is from `spark-sql` or `thrift-server`. -- 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]
