cloud-fan commented on code in PR #50527: URL: https://github.com/apache/spark/pull/50527#discussion_r2033336660
########## sql/core/src/test/scala/org/apache/spark/sql/CharVarcharTestSuite.scala: ########## @@ -798,6 +798,38 @@ trait CharVarcharTestSuite extends QueryTest with SQLTestUtils { ) } } + + test( + "SPARK-51732: rpad should be applied on attributes with same ExprId if those attributes " + + "should be deduplicated 2" + ) { + withSQLConf( + SQLConf.READ_SIDE_CHAR_PADDING.key -> "false", + SQLConf.LEGACY_NO_CHAR_PADDING_IN_PREDICATE.key -> "false" + ) { + withTable("mytable") { + sql(s"CREATE TABLE mytable(col CHAR(10))") + val plan = sql( + """ + SELECT t1.col Review Comment: You can follow the examples in this file -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org