Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15206 Add a validation functionality to hiveSchemaTool
  3. HIVE-16647

Improve the validation output to make the output to stderr and stdout more consistent

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 3.0.0
    • Component/s: Metastore
    • Labels:

      Description

      Some output are printed to stderr or stdout inconsistently. Here are some of them. Update to make them more consistent.

      • Version table validation
        When the version table is missing, the err msg goes to stderr
        When the version table is not valid, the err msg goes to stdout with a message like "Failed in schema version validation: <err_msg>
      • Metastore/schema table validation
        • When the version table contains the wrong version or there are no rows in the version table, err msg goes to stderr
        • When there diffs between the schema and metastore tables, the err msg goes to stdout

        Attachments

        1. HIVE-16647.1.patch
          8 kB
          Aihua Xu

          Issue Links

            Activity

              People

              • Assignee:
                aihuaxu Aihua Xu
                Reporter:
                aihuaxu Aihua Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: