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


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/dml/schema/TestBlobDataType.scala:
##########
@@ -485,6 +484,18 @@ class TestBlobDataType extends HoodieSparkSqlTestBase with 
ExtendedParserTestHel
       firstLiteralArg(transformByName(plan, "mu_ivl_t")).dataType)
     assertResult(YearMonthIntervalType(YearMonthIntervalType.YEAR, 
YearMonthIntervalType.MONTH))(
       firstLiteralArg(transformByName(plan, "uu_ivl_t")).dataType)
+
+    // Under ANSI keyword mode a bare false must survive visitBooleanLiteral 
as a typed literal,
+    // while a bare true stays a column reference (TRUE is ansiNonReserved, 
FALSE is not).
+    withSQLConf("spark.sql.ansi.enabled" -> "true") {

Review Comment:
   Added in 251e81b6d06d: `null_t(null, id)` in the ANSI-mode block asserting a 
`NullType` literal, plus the same reachability scaladoc on `visitNullLiteral` 
in all six builders so it is pinned the same way as `visitBooleanLiteral`.



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