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

We should provide better error message while constraints with duplicate names are created

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Diagnosability, Metastore
    • Labels:
      None
    • Target Version/s:

      Description

      PREHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable novalidate)
      PREHOOK: type: CREATETABLE
      PREHOOK: Output: database:default
      PREHOOK: Output: default@t1
      POSTHOOK: query: create table t1(x int, constraint pk1 primary key (x) disable novalidate)
      POSTHOOK: type: CREATETABLE
      POSTHOOK: Output: database:default
      POSTHOOK: Output: default@t1
      PREHOOK: query: create table t2(x int, constraint pk1 primary key (x) disable novalidate)
      PREHOOK: type: CREATETABLE
      PREHOOK: Output: database:default
      PREHOOK: Output: default@t2
      FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
      

      In the above case, it seems like useful error message is lost. It looks like a generic problem with metastore server/client exception handling and message propagation. Seems like exception parsing logic of RetryingMetaStoreClient::invoke() needs to be updated.

        Attachments

        1. HIVE-13608.1.patch
          5 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-13608.2.patch
          5 kB
          Hari Sankar Sivarama Subramaniyan
        3. HIVE-13608.3.patch
          5 kB
          Hari Sankar Sivarama Subramaniyan

          Issue Links

            Activity

              People

              • Assignee:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
                Reporter:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: