Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/4697#discussion_r25457449
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/parquet/parquetSuites.scala ---
@@ -263,6 +356,22 @@ abstract class ParquetTest extends QueryTest with
BeforeAndAfterAll {
}
}
+ Seq("partitioned_parquet_with_key_and_complextypes",
"partitioned_parquet_with_complextypes").foreach { table =>
+ test(s"SPARK-5775 read struct from $table") {
+ checkAnswer(
+ sql(s"SELECT p, structField.intStructField ,
structField.stringStructField FROM $table WHERE p = 1"),
+ (1 to 10).map { i => ((1, i, f"${i}_string"))}
+ )
+ }
+
+ test (s"SPARK-5775 read array from $table") {
+ checkAnswer(
+ sql(s"SELECT arrayField, p FROM $table WHERE p = 1"),
+ (1 to 10).map { i => ((1 to i,1))}
--- End diff --
Please remove redundant parenthesis, and add a space before `}`.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]