MaxGekk commented on a change in pull request #34259:
URL: https://github.com/apache/spark/pull/34259#discussion_r727371817
##########
File path:
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveParquetSuite.scala
##########
@@ -144,4 +144,21 @@ class HiveParquetSuite extends QueryTest with ParquetTest
with TestHiveSingleton
.plus(123456, ChronoUnit.MICROS)))
}
}
+
+ test("SPARK-36949: Disallow tables with ANSI intervals stored as parquet") {
+ val tbl = "tbl_with_ansi_intervals"
+ withTable(tbl) {
+ val errMsg = intercept[UnsupportedOperationException] {
+ sql(
+ s"""
+ |CREATE TABLE $tbl
+ |STORED AS PARQUET
Review comment:
The issue is in Hive's SerDe/Metastore. So, when you insert ANSI
intervals to a table where Hive SerDe is not involved (`provider` is parquet,
for instance), and we store schema in Spark's specific format to Hive external
catalog, I wonder why do you wonder that INSERT works well?
In that case, we use Hive MetaStore as a store for our schema only. HMS is
not aware of our types, right?
--
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]