[ 
https://issues.apache.org/jira/browse/HIVE-16912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16052389#comment-16052389
 ] 

Naveen Gangam commented on HIVE-16912:
--------------------------------------

Hey [~aihuaxu]
So java.sql.Connection.getSchema() 
(https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#getSchema())
 like a good replacement. I had tested it against Derby, Postgres and Oracle 
and works great. This API was introduced in JDK7, so using older driver jars 
will cause an issue.
I am uploading a patch with this fix.

> Improve table validator's performance against Oracle
> ----------------------------------------------------
>
>                 Key: HIVE-16912
>                 URL: https://issues.apache.org/jira/browse/HIVE-16912
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>    Affects Versions: 3.0.0
>            Reporter: Naveen Gangam
>            Assignee: Naveen Gangam
>            Priority: Minor
>         Attachments: HIVE-16912.patch
>
>
> Currently, this validator uses DatabaseMetaData.getTables() that takes in the 
> order of minutes to return because of the number of SYSTEM tables present in 
> Oracle.
> Providing a schema name via a system property would limit the number of 
> tables being returned and thus improve performance.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to