caican00 commented on code in PR #41993:
URL: https://github.com/apache/spark/pull/41993#discussion_r1263279866
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/V2WriteAnalysisSuite.scala:
##########
@@ -744,6 +744,46 @@ abstract class V2WriteAnalysisSuiteBase extends
AnalysisTest {
}
}
+ test ("SPARK-44414: Fixed matching check for CharType/VarcharType") {
+ // check varchar type
+ val json1 = "{\"__CHAR_VARCHAR_TYPE_STRING\":\"varchar(80)\"}"
Review Comment:
> Consider using `Seq("{\"__CHAR_VARCHAR_TYPE_STRING\":\"char(80)\"}",
"{\"__CHAR_VARCHAR_TYPE_STRING\":\"varchar(80)\"}").foreach { ... ` to minimize
duplicates?
updated. Thanks for reviewing @yaooqinn
--
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]