You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/14 04:41:09 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request, #38250: [SPARK-40382][SQL][TESTS] Make the tests pass with ANSI enabled

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #38250:
URL: https://github.com/apache/spark/pull/38250#issuecomment-1279578586

   No problem. This happens time to time even in my PR :-)


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled
URL: https://github.com/apache/spark/pull/38250


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #38250:
URL: https://github.com/apache/spark/pull/38250#issuecomment-1278565389

   Merged to master.


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #38250:
URL: https://github.com/apache/spark/pull/38250#issuecomment-1278474958

   cc @cloud-fan and @bersprockets FYI


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng commented on pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
zhengruifeng commented on PR #38250:
URL: https://github.com/apache/spark/pull/38250#issuecomment-1278546246

   seems fine if CI passes


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] bersprockets commented on pull request #38250: [SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

Posted by GitBox <gi...@apache.org>.
bersprockets commented on PR #38250:
URL: https://github.com/apache/spark/pull/38250#issuecomment-1279153112

   Thanks, and sorry about that. I will verify any test changes with`SPARK_ANSI_SQL_MODE=true` going forward.


-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org