HyukjinKwon opened a new pull request, #38250:
URL: https://github.com/apache/spark/pull/38250

   ### What changes were proposed in this pull request?
   
   This PR is a followup of https://github.com/apache/spark/pull/37825, that 
change the types in the test relation to make the tests pass with ANSI enalbed.
   
   ### Why are the changes needed?
   
   To recover the test coverage. Currently it fails with ANSI mode on: 
https://github.com/apache/spark/actions/runs/3246829492/jobs/5326051798#step:9:20487
   
   ```
   [info] - SPARK-40382: eliminate multiple distinct groups due to superficial 
differences *** FAILED *** (5 milliseconds)
   [info]   org.apache.spark.sql.AnalysisException: 
[DATATYPE_MISMATCH.BINARY_OP_WRONG_TYPE] Cannot resolve "(b + c)" due to data 
type mismatch: the binary operator requires the input type ("NUMERIC" or 
"INTERVAL DAY TO SECOND" or "INTERVAL YEAR TO MONTH" or "INTERVAL"), not 
"STRING".
   [info]   at 
org.apache.spark.sql.catalyst.analysis.package$AnalysisErrorAt.dataTypeMismatch(package.scala:68)
   [info]   at 
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis0$5(CheckAnalysis.scala:223)
   [info]   at 
org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis0$5$adapted(CheckAnalysis.scala:210)
   [info]   at 
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:295)
   [info]   at 
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:294)
   [info]   at 
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:294)
   [info]   at 
scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
   [info]   at 
scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
   [info]   at 
scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
   [info]   at 
org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:294)
   [info]   at 
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:2
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, test-only.
   
   
   ### How was this patch tested?
   Manually ran the tests locally.


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