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)
...
spark-sql> select decode('ff','hex');
19/08/16 21:44:55 ERROR SparkSQLDriver: Failed in [select decode('ff','hex')]
java.io.UnsupportedEncodingException: hex
at java.lang.StringCoding.decode(StringCoding.java:190)
at java.lang.String.<init>(String.java:426)
at java.lang.String.<init>(String.java:491)