Github user jurriaan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13235#discussion_r64139152
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala 
---
    @@ -2477,6 +2477,30 @@ class SQLQuerySuite extends QueryTest with 
SharedSQLContext {
         }
       }
     
    +  test("SPARK-15327: fail to compile generated code with complex data 
structure") {
    +    withTempDir{ dir =>
    +      val json =
    +        """
    +          |{"h": {"b": {"c": [{"e": "adfgd"}], "a": [{"e": "testing", 
"count": 3}],
    +          |"b": [{"e": "test", "count": 1}]}}, "d": {"b": {"c": [{"e": 
"adfgd"}],
    +          |"a": [{"e": "testing", "count": 3}], "b": [{"e": "test", 
"count": 1}]}},
    +          |"c": {"b": {"c": [{"e": "adfgd"}], "a": [{"count": 3}],
    +          |"b": [{"e": "test", "count": 1}]}}, "a": {"b": {"c": [{"e": 
"adfgd"}],
    +          |"a": [{"count": 3}], "b": [{"e": "test", "count": 1}]}},
    +          |"e": {"b": {"c": [{"e": "adfgd"}], "a": [{"e": "testing", 
"count": 3}],
    +          |"b": [{"e": "test", "count": 1}]}}, "g": {"b": {"c": [{"e": 
"adfgd"}],
    +          |"a": [{"e": "testing", "count": 3}], "b": [{"e": "test", 
"count": 1}]}},
    +          |"f": {"b": {"c": [{"e": "adfgd"}], "a": [{"e": "testing", 
"count": 3}],
    +          |"b": [{"e": "test", "count": 1}]}}, "b": {"b": {"c": [{"e": 
"adfgd"}],
    +          |"a": [{"count": 3}], "b": [{"e": "test", "count": 1}]}}}'
    --- End diff --
    
    Nice fixture, haha!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to