PRIYESH RANJAN created CARBONDATA-4337: ------------------------------------------
Summary: refresh table for renamed table fails in Carbon 2.1.0 and Carbon 2.3.1 Key: CARBONDATA-4337 URL: https://issues.apache.org/jira/browse/CARBONDATA-4337 Project: CarbonData Issue Type: Bug Components: other Affects Versions: 2.1.0, 2.3.0, 2.3.1 Reporter: PRIYESH RANJAN +*create table, load and rename table*+ drop database if exists sdv cascade; create database if not exists sdv; use sdv; drop table if exists uniqdata; CREATE TABLE uniqdata(CUST_ID int ,CUST_NAME string,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double, INTEGER_COLUMN1 int) STORED as carbondata; LOAD DATA INPATH 'hdfs://hacluster/chetan/2000_UniqData.csv' into table uniqdata OPTIONS ('FILEHEADER'='CUST_ID,CUST_NAME ,ACTIVE_EMUI_VERSION,DOB,DOJ, BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, Double_COLUMN2,INTEGER_COLUMN1','BAD_RECORDS_ACTION'='FORCE'); alter table uniqdata rename TO uniqdataTable ; +***take store from hdfs***+ Drop table uniqdataTable; +***Put store in hdfs***+ use sdv; refresh table uniqdataTable; *Snips:* _(Error Message for refresh table)_ _0: jdbc:hive2://linux-hbk4:22550/> refresh table uniqdataTable;_ _Error: org.apache.hive.service.cli.HiveSQLException: Error running query: org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'uniqdatatable' not found in database 'ranjan'_ _at org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation.org$apache$spark$sql$hive$thriftserver$SparkExecuteStatementOperation$$execute(SparkExecuteStatementOperation.scala:387)_ _at org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation$$anon$2$$anon$3.$anonfun$run$3(SparkExecuteStatementOperation.scala:276)_ _at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)_ _at org.apache.spark.sql.hive.thriftserver.SparkOperation.withLocalProperties(SparkOperation.scala:78)_ _at org.apache.spark.sql.hive.thriftserver.SparkOperation.withLocalProperties$(SparkOperation.scala:62)_ _at org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation.withLocalProperties(SparkExecuteStatementOperation.scala:46)_ _at org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation$$anon$2$$anon$3.run(SparkExecuteStatementOperation.scala:276)_ -- This message was sent by Atlassian Jira (v8.20.7#820007)