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

TestCsvHeader#testEmptyFinalColumn is causing the unit test framework to print 10K rows in Stdout

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: Tools, Build & Test
    • Labels:
      None

      Description

      This unit test is printing 10.000 rows all equal to the following line:

      field2(VARCHAR:REQUIRED)[$offsets$(UINT4:REQUIRED)]
      

      DrillTestWrapper contains the following code in 2 separate methods that prints a field's details whenever an "empty" value is encountered:

                  if (obj instanceof Text) {
                    obj = obj.toString();
                    if (obj.equals("")) {
                      System.out.println(w.getField());
                    }
                  }
      

      Because this particular unit test was creating 10K rows with an empty field, it was causing lot's of output to Stdout.

        Attachments

          Activity

            People

            • Assignee:
              adeneche Abdel Hakim Deneche
              Reporter:
              adeneche Abdel Hakim Deneche
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: