Laszlo Pinter created HIVE-22765:
------------------------------------

             Summary: Quote table names in CompactionTxnHandler
                 Key: HIVE-22765
                 URL: https://issues.apache.org/jira/browse/HIVE-22765
             Project: Hive
          Issue Type: Improvement
    Affects Versions: 4.0.0
            Reporter: Laszlo Pinter
            Assignee: Zoltan Chovan


When I run a metastore backed up by a postgres db, I get the following 
exception: 
{code:java}
MetaException(message:Unable to connect to transaction database 
org.postgresql.util.PSQLException: ERROR: relation "compaction_queue" does not 
existMetaException(message:Unable to connect to transaction database 
org.postgresql.util.PSQLException: ERROR: relation "compaction_queue" does not 
exist  Position: 83 at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2468)
 at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2211)
 at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:309) at 
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446) at 
org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370) at 
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:311) at 
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:297) at 
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:274) at 
org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:225) at 
org.apache.hive.com.zaxxer.hikari.pool.ProxyStatement.executeQuery(ProxyStatement.java:108)
 at 
org.apache.hive.com.zaxxer.hikari.pool.HikariProxyStatement.executeQuery(HikariProxyStatement.java)
 at 
org.apache.hadoop.hive.metastore.txn.CompactionTxnHandler.findNextToCompact(CompactionTxnHandler.java:157)
 at 
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.find_next_compact(HiveMetaStore.java:8061)
 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)
 at 
org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)
 at com.sun.proxy.$Proxy28.find_next_compact(Unknown Source) at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.findNextCompact(HiveMetaStoreClient.java:4046)
 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:208)
 at com.sun.proxy.$Proxy29.findNextCompact(Unknown Source) at 
org.apache.hadoop.hive.ql.txn.compactor.Worker.run(Worker.java:102){code}
This is due to missing quotes around table names. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to