[ https://issues.apache.org/jira/browse/SPARK-38225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-38225. --------------------------------- Fix Version/s: 3.3.0 Resolution: Fixed Issue resolved by pull request 35533 [https://github.com/apache/spark/pull/35533] > Adjust input `format` of function `to_binary` > --------------------------------------------- > > Key: SPARK-38225 > URL: https://issues.apache.org/jira/browse/SPARK-38225 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.3.0 > Reporter: Xinrong Meng > Assignee: Xinrong Meng > Priority: Major > Fix For: 3.3.0 > > > Currently, function to_binary doesn't deal with the non-string `format` > parameter properly. > For example, `spark.sql("select to_binary('abc', 1)")` raises casting error, > rather than hint that encoding format is unsupported. > In addition, `base2` format is arguable as discussed > [here](https://github.com/apache/spark/pull/35415#discussion_r805578036). We > may exclude it following what Snowflake > [to_binary](https://docs.snowflake.com/en/sql-reference/functions/to_binary.html) > does for now. > -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org