Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7676

JDBC: Support more DatabaseMetaData, ResultSetMetaData methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.1
    • 0.14.0
    • JDBC
    • None

    Description

      I noticed that some methods in HiveDatabaseMetaData throws exceptions instead of returning true/false. Many JDBC clients expects implementations for particular methods in order to work.

      E.g. SQuirreL SQL shows databases only if supportsSchemasInTableDefinitions returns true.

      Also hive 0.14.0 supports UNION ALL and does not support UNION
      We can indicate this in HiveDatabaseMetaData instead of throwing Method Not supported exception.

      getIdentifierQuoteString should return space if not supported.
      http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getIdentifierQuoteString%28%29

      Attachments

        1. HIVE-7676.patch
          4 kB
          Alexander Pivovarov

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              apivovarov Alexander Pivovarov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: