[ 
https://issues.apache.org/jira/browse/DRILL-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270168#comment-14270168
 ] 

Jason Altekruse edited comment on DRILL-1824 at 1/8/15 10:48 PM:
-----------------------------------------------------------------

I cannot go back and fix the repo at this point, but I referenced this JIRA 
number in the fix for another issue (DRILL-1896). I must have had the two 
JIRA's open and mixed up the numbers, you can see the issue in the various 
versions of the patches attached to DRILL-1896 with DRILL-1824 referenced. At 
this time 1824 is still open.


was (Author: jaltekruse):
I cannot go back and fix the repo at this point, but I referenced this JIRA 
number in the fix for another issue (DRILL-1896). I must have had the two 
JIRA's open and mixed up the numbers, you can see the issue in the various 
versions of the patches attached to DRILL-1894 with DRILL-1824 referenced. At 
this time 1824 is still open.

> Certain JSON data test patterns cause false negatives in new test framework
> ---------------------------------------------------------------------------
>
>                 Key: DRILL-1824
>                 URL: https://issues.apache.org/jira/browse/DRILL-1824
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Tools, Build & Test
>    Affects Versions: 0.7.0
>            Reporter: Jacques Nadeau
>            Assignee: Jason Altekruse
>            Priority: Minor
>             Fix For: Future
>
>
> Testing the json reader.  
> {code}
>     testBuilder() //
>       .sqlQuery("select b from files") //
>       .unOrdered() //
>       .jsonBaselineFile("expected.json") //
>       .build()
>       .run();
> {code}
> Files composed of two files:
> File 1
> {code}
> {"a": "foo","b": null}
> {"a": "bar","b": null}
> {code}
> File 2
> {code}
> {"a": "foo2","b": null}
> {"a": "bar2","b": {"x":1, "y":2}}
> {code}
> Expected Output:
> {code}
> b
> null
> null
> {}
> {"x":1,"y":2}
> {code}
> Receives failure of 
> {code}
> java.lang.Exception: Did not find expected record in result set: `b` : null, 
>       at 
> org.apache.drill.DrillTestWrapper.compareResults(DrillTestWrapper.java:528)
>       at 
> org.apache.drill.DrillTestWrapper.compareUnorderedResults(DrillTestWrapper.java:290)
>       at org.apache.drill.DrillTestWrapper.run(DrillTestWrapper.java:118)
>       at 
> org.apache.drill.exec.vector.complex.writer.TestJsonReader.schemaChange(TestJsonReader.java:60)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at java.lang.reflect.Method.invoke(Method.java:601)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at java.lang.reflect.Method.invoke(Method.java:601)
> {code}



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

Reply via email to