Re: Converting Hive Column from Varchar to String

2019-07-17 Thread Jörn Franke
You have to create a new table with this column as varchar and do a select insert from the old table. > Am 18.07.2019 um 01:14 schrieb William Shen : > > Hi all, > > I assumed that it should be compatible to convert column type varchar to > string, however, after running ALTER TABLE table CHA

Re: Converting Hive Column from Varchar to String

2019-07-17 Thread William Shen
To add, the storage information is as follows # Storage Information SerDe Library: org.apache.hadoop.hive.ql.io.orc.OrcSerde InputFormat: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat OutputFormat: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat Compressed: No On Wed

Converting Hive Column from Varchar to String

2019-07-17 Thread William Shen
Hi all, I assumed that it should be compatible to convert column type varchar to string, however, after running ALTER TABLE table CHANGE col col STRING, I encounter the following error when querying the column from hive: Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata

Apache Hive 2.3.4 - Issue with combination of Like operator & newline (\n) character in data

2019-07-17 Thread Shankar Mane
Hi All, I am facing some issues while using Like operator & newline (\n) character. Below is the in details description : *-- Hive Queries * create table default.withdraw( id string ) stor