shivadarshan-devadiga commented on code in PR #60750:
URL: https://github.com/apache/spark/pull/60750#discussion_r4651089929


##########
sql/core/src/test/scala/org/apache/spark/sql/CharVarcharTestSuite.scala:
##########
@@ -660,6 +660,59 @@ trait CharVarcharTestSuite extends QueryTest {
     }
   }
 
+  test("SPARK-61970: char type comparison: struct field and string literal") {

Review Comment:
   Thanks, added:
   - Top-level columns: `IF(false, c = CAST(1 / 0 AS STRING), true)` and the 
`IN` form under ANSI, and the `Dataset.to` case from [1].
   - `spark.sql.readSideCharPadding=false`: `SPARK-61970: struct field and 
string literal without read-side padding` (`FileSourceCharVarcharTestSuite`), 
an external table over an unpadded struct field, with `=` and `IN`.
   - Outer references: `EXISTS (SELECT 1 FROM range(1) WHERE t.s.c = 'a')`, 
plus the reversed and `IN` forms and a top-level column.
   - `WHERE` filters, for the same four conditions.
   - DSv2 row-level commands: `SPARK-61970: delete/update/merge with a 
condition on a CHAR field of a struct` in `DeleteFromTableSuiteBase`, 
`UpdateTableSuiteBase` and `MergeIntoTableSuiteBase`, with `=` and `IN` on 
`s.c`, and for MERGE in both the ON and the WHEN MATCHED conditions.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to