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


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/dml/schema/TestBlobDataType.scala:
##########
@@ -282,4 +284,256 @@ 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

Review Comment:
   Done. Filed #19451 for the prune and updated the PR description to point at 
it instead of claiming every remaining path is reachable.



##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/ddl/TestCreateTable.scala:
##########
@@ -2340,6 +2341,140 @@ class TestCreateTable extends HoodieSparkSqlTestBase {
     }
   }
 
+  // The following cases are parser-coverage only: a VECTOR column routes the 
whole CREATE TABLE
+  // through the extended AST builder, so its clause visitors run. parsePlan 
is purely syntactic
+  // (no catalog, no execution), matching how TestIndexSyntax exercises the 
index statements, which
+  // lets us cover clauses that are not supported at execution time (transform 
partitioning,
+  // CLUSTERED BY, typed literal arguments). The VECTOR column type proves the 
statement routed
+  // here because the stock Spark parser rejects the VECTOR type name.
+
+  private def parseCreateTable(sql: String): CreateTable =
+    spark.sessionState.sqlParser.parsePlan(sql).asInstanceOf[CreateTable]
+
+  test("test create VECTOR table with partition transforms parses (parser 
coverage)") {

Review Comment:
   Done. Dropped both tests; the section comment now explains transform/literal 
coverage lives only in `TestBlobDataType` because the clause visitors are 
type-agnostic. The CLUSTERED BY and clause tests keep the VECTOR routing check.



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