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

BeeLine tests output should keep the PREHOOK/POSTHOOK Input/Output orderdering

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Testing Infrastructure
    • Labels:
      None

      Description

      The PreExecutePrinter and the PostExecutePrinter prints the query input and the output list in alphabetical order in printEntities method.

      Our goal is to have the same output from the BeeLine query tests, and the Cli query tests. Since the BeeLine tests are using test specific databases to run the tests, and only converting the results in the end to remove this specific database names from the output, we have to reorder the lists after this conversion.

      Raw BeeLine output:

      [..]
      INFO  : PREHOOK: Output: create_merge_compressed@src_rc_merge_test
      INFO  : PREHOOK: Output: database:create_merge_compressed
      [..]
      

      Before patch BeeLine output:

      [..]
      PREHOOK: Output: default@src_rc_merge_test
      PREHOOK: Output: database:default
      [..]
      

      Expected output:

      [..]
      PREHOOK: Output: database:default
      PREHOOK: Output: default@src_rc_merge_test
      [..]
      

        Attachments

        1. HIVE-16643.01.patch
          11 kB
          Peter Vary
        2. HIVE-16643.patch
          11 kB
          Peter Vary

          Activity

            People

            • Assignee:
              pvary Peter Vary
              Reporter:
              pvary Peter Vary
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: