[ 
https://issues.apache.org/jira/browse/HIVE-22177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930171#comment-16930171
 ] 

philipse edited comment on HIVE-22177 at 9/16/19 10:35 AM:
-----------------------------------------------------------

[~sanjurm16], [~nareshpr]i am wondering if we have a serialize format like orc 
to deal with the un-utf character,we will just need to create the table with 
this kind of  format if we know we may store  un-utf characters ,and then we 
can use the data as normal data ,instand of  using the  reflect function every 
time. for i notice there are other issues map also related to this 
onehttps://issues.apache.org/jira/browse/HIVE-3677


was (Author: 小郭飞飞刀):
[~sanjurm16] [~nareshpr]i am wondering if we have a serialize format like orc 
to deal with the un-utf character,we will just need to create the table with 
this kind of  format if we know we may store  un-utf characters ,and then we 
can use the data as normal data ,instand of  using the  reflect function every 
time. for i notice there are other issues map also related to this 
one[https://issues.apache.org/jira/browse/HIVE-3677]

> Beeline query for special character like £ does not give back result
> --------------------------------------------------------------------
>
>                 Key: HIVE-22177
>                 URL: https://issues.apache.org/jira/browse/HIVE-22177
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 1.1.0, 2.3.6
>         Environment: Cloudera 5.15.1 Hive 1.1.0
> beeline and Impala
>            Reporter: Sanjay Mishra
>            Priority: Major
>
> I have a table in hive with a column having special character like £. When I 
> try to a query as simple as 'SELECT * FROM TABLE WHERE COL = "£"; ', the 
> query does not come back with any result. 
> The table data is UTF-8 encoded. The sql file that contains the above sql and 
> run via beeline is also UTF-8 encoded.
> Interestingly, if I try to create the run the same query using impala against 
> the same table, I get back the columns containing the £ symbol.
> Also when the data from the table is exported (SELECT * FROM THE TABLE and 
> save the output to csv file) the column with special character is shown as 
> NULL.
>  
> Steps to replicate:
>  # create test.sql file with the below content: 
>  # 
> {code:java}
>  CREATE TABLE T1 (test String);
> INSERT INTO T1 VALUES('£');
> {code}
>  # beeline>!run test.sql
>  # create another file test_select.sql with the below content:
>  # 
> {code:java}
> SELECT * FROM T1 WHERE test='£';{code}
>  # beeline>!run test_select.sql
>  # No results will be returned back



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to