AngersZhuuuu commented on a change in pull request #35229:
URL: https://github.com/apache/spark/pull/35229#discussion_r786597387
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -4243,6 +4243,14 @@ class SQLQuerySuite extends QueryTest with
SharedSparkSession with AdaptiveSpark
checkAnswer(df3, df4)
}
}
+
+ test("SPARK-27442: Spark support read parquet file with invalid char in
field name") {
+ withResourceTempPath("test-data/field_with_invalid_char.snappy.parquet") {
dir =>
+ val df = spark.read.parquet(dir.getAbsolutePath)
+ checkAnswer(df, Row(1, 2, 3) :: Nil)
+ assert(df.schema.names.sameElements(Array("max(t)", "a b", "{")))
Review comment:
> can we include dot as well? I'm wondering if the parquet lib forbids
dot or not during writing.
Added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]