spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cloud-fan <>
Subject [GitHub] spark pull request #16386: [SPARK-18352][SQL] Support parsing multiline json...
Date Sat, 11 Feb 2017 00:24:57 GMT
Github user cloud-fan commented on a diff in the pull request:
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
    @@ -1764,4 +1769,123 @@ class JsonSuite extends QueryTest with SharedSQLContext with TestJsonData
         val df2 ="PREfersdecimaL", "true").json(records)
         assert(df2.schema == schema)
    +  test("SPARK-18352: Parse normal multi-line JSON files (compressed)") {
    +    withTempPath { dir =>
    +      val path = dir.getCanonicalPath
    +      primitiveFieldAndType
    --- End diff --
    I checked with `primitiveFieldAndType`, it's not a json array but is wrapped with `{ }`.
This is different with the [python test](
. So if the whole file is not a json array, this file will only produce a single row, right?

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message