Sourabh Goyal created HIVE-25440:
------------------------------------

             Summary: get_tables_ext() and get_tables() api in HMSHandler 
should request tables in batches
                 Key: HIVE-25440
                 URL: https://issues.apache.org/jira/browse/HIVE-25440
             Project: Hive
          Issue Type: Bug
          Components: Metastore, Standalone Metastore
            Reporter: Sourabh Goyal
            Assignee: Sourabh Goyal


If HMS is backed by Oracle DB and there are more than 1k tables then get_tables 
and get_tables_ext request fail with the following error in HMSHandler 

java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a 
list is 1000 at 
oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)

The fix is to request tables in batches in getTableObjectsByName() called from 
get_tables and  get_tables_ext



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

Reply via email to