cloud-fan commented on code in PR #37364:
URL: https://github.com/apache/spark/pull/37364#discussion_r935011158
##########
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveParquetSourceSuite.scala:
##########
@@ -378,4 +378,15 @@ class HiveParquetSourceSuite extends
ParquetPartitioningTest with ParquetTest {
}
}
}
+
+ test("Create view with dashes in column type") {
+ sql(
+ """
+ |CREATE TABLE tbl (f array<struct<`date-of-creation`:string>>) USING
parquet
+ |""".stripMargin)
+ sql(
+ """
+ |CREATE VIEW tblView AS SELECT f FROM tbl
Review Comment:
and let's make the test complete
```
withView("t") {
sql("CREATE VIEW t AS SELECT STRUCT('a' AS $a, 1 AS b) q")
checkAnswer(spark.table("t"), Row(Row("a", 1)))
}
```
--
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]