voonhous commented on code in PR #19408:
URL: https://github.com/apache/hudi/pull/19408#discussion_r3690896240


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/dml/schema/TestBlobDataType.scala:
##########
@@ -282,4 +285,267 @@ class TestBlobDataType extends HoodieSparkSqlTestBase {
         "Expected at least one .clean instant on the timeline after 
compaction")
     })
   }
+
+  // The following cases are parser-coverage only: a BLOB column routes the 
whole CREATE TABLE
+  // through the extended AST builder, so its clause visitors run. parsePlan 
is purely syntactic
+  // (no catalog, no execution), which lets us exercise clauses Hudi does not 
support at execution
+  // time (transform partitioning, STORED AS / ROW FORMAT, interval columns). 
The BLOB column type
+  // itself proves routing because the stock Spark parser rejects the BLOB 
type name.
+
+  private def parse(sql: String): CreateTable =

Review Comment:
   One leftover from the extraction: `parse` here and `parseCreateTable` in 
`TestCreateTable` are still the same one-liner in two files. The trait can host 
it -- declare `protected def spark: SparkSession` in 
`ExtendedParserTestHelpers`; `HoodieSparkSqlTestBase`'s `protected lazy val 
spark` already satisfies it.



-- 
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]

Reply via email to