Member since
12-08-2015
10
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
6196 | 06-20-2016 02:52 PM |
06-21-2016
11:54 AM
Unfortunately there doesn't seem to be a function that does this. If you are familiar with Java or C++, writing a UDF shouldn't be too hard. UDF documentation is at http://www.cloudera.com/documentation/enterprise/latest/topics/impala_udf.html and of course if you have questions we can help you here.
... View more
06-20-2016
02:52 PM
Hello, Impala implemented this function for Hive compatibility. The behavior is the same is in Hive. I'm not sure why Hive decided to implement the function this way. The input "4B" is converted to a character using the same logic as shown in http://www.asciitable.com/, you'll see "4B" corresponds to the character "K" (column "Hx" to column "Chr"). In the "4B" case, the ASCII() function can be used to give the value you expected. Query: select ascii(unhex('4b'))
+--------------------+
| ascii(unhex('4b')) |
+--------------------+
| 75 |
+--------------------+
... View more
12-09-2015
03:09 PM
Hi Jais, The error appears to come from the Simba's JDBC driver code instead of Impala. You might try contacting Simba for help. Also the driver has a native mode, enabling the UseNativeQuery option may help by bypassing some driver side processing. If you see any errors in the impalad or catalogd logs please post them. Or if you have a consistent way to reproduce the error, we can work with Simba on the problem. Casey
... View more