You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/20 08:59:01 UTC

[jira] [Created] (SPARK-28121) String Functions: decode can not accept 'escape' as charset

Yuming Wang created SPARK-28121:
-----------------------------------

             Summary: String Functions: decode can not accept 'escape' as charset
                 Key: SPARK-28121
                 URL: https://issues.apache.org/jira/browse/SPARK-28121
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Yuming Wang


{noformat}
postgres=# select decode('1234567890','escape');
decode
------------------------
\x31323334353637383930
(1 row)
{noformat}
{noformat}
spark-sql> select decode('1234567890','escape');
19/06/20 01:57:33 ERROR SparkSQLDriver: Failed in [select decode('1234567890','escape')]
java.io.UnsupportedEncodingException: escape
	at java.lang.StringCoding.decode(StringCoding.java:190)
	at java.lang.String.<init>(String.java:426)
	at java.lang.String.<init>(String.java:491)
{noformat}





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org