Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5783

Make code generation in the TopN operator more modular and test it

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The work for this PR has had several other PRs batched together with it. The full description of work is the following:

      DRILL-5783

      • A unit test is created for the priority queue in the TopN operator
      • The code generation classes passed around a completely unused function registry reference in some places so I removed it.
      • The priority queue had unused parameters for some of its methods so I removed them.

      DRILL-5841

      • There were many many ways in which temporary folders were created in unit tests. I have unified the way these folders are created with the DirTestWatcher, SubDirTestWatcher, and BaseDirTestWatcher. All the unit tests have been updated to use these. The test watchers create temp directories in ./target//. So all the files generated and used in the context of a test can easily be found in the same consistent location.
      • This change should fix the sporadic hashagg test failures, as well as failures caused by stray files in /tmp

      DRILL-5894

      • dfs_test is used as a storage plugin throughout the unit tests. This is highly confusing and we can just use dfs instead.

      Misc

      • General code cleanup.
      • There are many places where String.format is used unnecessarily. The test builder methods already use String.format for you when you pass them args. I cleaned some of these up.

      Attachments

        Issue Links

          Activity

            People

              timothyfarkas Timothy Farkas
              timothyfarkas Timothy Farkas
              Paul Rogers Paul Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: