Xinyao Zhang created SPARK-60534:
------------------------------------
Summary: Investigate Non-ANSI CHAR/VARCHAR type assertions in
BasicCharVarcharTestSuite
Key: SPARK-60534
URL: https://issues.apache.org/jira/browse/SPARK-60534
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 5.0.0
Reporter: Xinyao Zhang
Parent: SPARK-60531.
The Non-ANSI master run on 2026-10-23 fails two BasicCharVarcharTestSuite cases
with SPARK_ANSI_SQL_MODE=false (JDK 17, Scala 2.13):
- "SPARK-58794: inventoried shapes do not leak CHAR/VARCHAR under
standardSemantics": zeroifnull(c) returns a CHAR/VARCHAR type outside the
test's permitted pass-through list.
- "SPARK-58794: CHAR/VARCHAR vs non-string follow STRING for compare and
COALESCE": typeof(coalesce(cast('123' AS CHAR(3)), 123)) returns char(3), while
the STRING comparison returns string.
Evidence: https://github.com/apache/spark/actions/runs/39883743642
Tested commit: fce7d51a3760953097fe34df8aa9a4f5326c74ff
Related feature work: SPARK-58794.
Investigate the intended Non-ANSI typing and whether the correction belongs in
type coercion or test setup/assertions. These are CI observations; local
reproduction and root cause are not yet established. Verify the focused cases
with ANSI mode disabled and enabled before proposing a fix.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]