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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • Tools, Build & Test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: