You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2016/02/22 21:55:18 UTC

[jira] [Updated] (DRILL-4423) TestCsvHeader#testEmptyFinalColumn is causing the unit test framework to print 10K rows in Stdout

     [ https://issues.apache.org/jira/browse/DRILL-4423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deneche A. Hakim updated DRILL-4423:
------------------------------------
    Fix Version/s: 1.6.0

> TestCsvHeader#testEmptyFinalColumn is causing the unit test framework to print 10K rows in Stdout
> -------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-4423
>                 URL: https://issues.apache.org/jira/browse/DRILL-4423
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Tools, Build & Test
>    Affects Versions: 1.5.0
>            Reporter: Deneche A. Hakim
>            Assignee: Deneche A. Hakim
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> This unit test is printing 10.000 rows all equal to the following line:
> {noformat}
> field2(VARCHAR:REQUIRED)[$offsets$(UINT4:REQUIRED)]
> {noformat}
> DrillTestWrapper contains the following code in 2 separate methods that prints a field's details whenever an "empty" value is encountered:
> {code}
>             if (obj instanceof Text) {
>               obj = obj.toString();
>               if (obj.equals("")) {
>                 System.out.println(w.getField());
>               }
>             }
> {code}
> Because this particular unit test was creating 10K rows with an empty field, it was causing lot's of output to Stdout.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)