drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-1824) Certain JSON data test patterns cause false negatives in new test framework
Date Mon, 08 Dec 2014 06:31:12 GMT
Jacques Nadeau created DRILL-1824:
-------------------------------------

             Summary: 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: Bug
          Components: Tools, Build & Test
    Affects Versions: 0.7.0
            Reporter: Jacques Nadeau
            Assignee: Jason Altekruse
             Fix For: 0.8.0


Testing the json reader.  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}

{code}
    testBuilder() //
      .sqlQuery("select b from files") //
      .unOrdered() //
      .jsonBaselineFile("expected.json") //
      .build()
      .run();
{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)

Mime
View raw message