Description
GenericUDFEncode line 45 says
extended = "Possible options for the character set are 'US_ASCII', 'ISO-8859-1',\n" +
But Java Charset API says that valid ASCII charset value is US-ASCII
https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html
java.nio.charset.StandardCharset line 44
public static final Charset US_ASCII = Charset.forName("US-ASCII");
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/java/nio/charset/StandardCharsets.java#StandardCharsets
So, US_ASCII (with underscore) is java constant name
But the value is "US-ASCII" (with hyphen)
TestGenericUDFEncode JUnit tests uses 'US-ASCII' from the beginning (line 34).
https://github.com/apache/hive/blob/master/ql/src/test/org/apache/hadoop/hive/ql/udf/generic/TestGenericUDFEncode.java
Attachments
Attachments
Issue Links
- relates to
-
HIVE-2482 Convenience UDFs for binary data type
- Closed
- links to