jinxing64 commented on code in PR #5588:
URL: https://github.com/apache/hudi/pull/5588#discussion_r875510464
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestCreateTable.scala:
##########
@@ -763,4 +763,22 @@ class TestCreateTable extends HoodieSparkSqlTestBase {
assertResult(true)(shown.contains("COMMENT 'This is a simple hudi
table'"))
}
}
+
+ test("Test CTAS using an illegal definition -- a COW table with compaction
enabled.") {
+ val tableName = generateTableName
+ checkExceptionContain(
+ s"""
+ | create table $tableName using hudi
+ | tblproperties(
+ | primaryKey = 'id',
+ | type = 'cow',
+ | hoodie.compact.inline='true'
Review Comment:
You mean this line
?https://github.com/apache/hudi/pull/5588/files/c06740700f51f557b77ffc19068e36a4cb19864a#diff-52cf34bac0cb6cc5b9c0f46c5fd190ac202a1db824182b59137d83ae0db38c89R779
"Compaction is not supported on a CopyOnWrite table"
--
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]