Member since
09-14-2017
3
Posts
0
Kudos Received
0
Solutions
02-18-2018
07:10 PM
@Neeraj Sabharwal :Any suggestions here ?
... View more
02-18-2018
06:26 PM
Currently I have a Partitioned ORC "Managed" (Wrongly created as Internal first) Hive table in Prod with atleast 100 days worth of data partitioned by year,month,day(~16GB of data). This table has roughly 160 columns.Now my requirement is to Add a column in the middle of this table and still be able to query the older data(partitioned files).Its is fine if the newly added column shows null for the old data. See below What I did so far ? 1)First convert the table to External using below to preserve data files before dropping alter table <table_name> SET TBLPROPERTIES('EXTERNAL'='TRUE'); 2)Drop and Recreate the table with new column in the middle and then Altered the table to add the old partition file However I am unable to read the table after Recreation .I get this Error message Any other ways to Accomplish this ? [Simba][HiveJDBCDriver](500312) Error in fetching data rows: *org.apache.hive.service.cli.HiveSQLException:java.io.IOException: java.io.IOException: ORC does not support type conversion from file type array<string> (87) to reader type int (87):33:32;
... View more
Labels:
- Labels:
-
Apache Hive