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/01/23 16:39:52 UTC

[GitHub] [spark] ivoson opened a new pull request #35292: [Spark-37941][SQL] Use error classes in the compilation errors of casting

ivoson opened a new pull request #35292:
URL: https://github.com/apache/spark/pull/35292


   ### What changes were proposed in this pull request?
   Migrate the following errors in QueryCompilationErrors onto use error classes:
   upCastFailureError
   unsupportedAbstractDataTypeForUpCastError
   cannotUpCastAsAttributeError
   
   ### Why are the changes needed?
   Porting casting errors to new error framework.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Existing UT.
   


-- 
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] ivoson commented on pull request #35292: [SPARK-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
ivoson commented on pull request #35292:
URL: https://github.com/apache/spark/pull/35292#issuecomment-1025198886


   Closing and open another PR https://github.com/apache/spark/pull/35366


-- 
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] ivoson commented on pull request #35292: [Spark-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
ivoson commented on pull request #35292:
URL: https://github.com/apache/spark/pull/35292#issuecomment-1019522337


   cc @MaxGekk
   
   Since there are some existing test cases in [EncoderResolutionSuite](https://github.com/apache/spark/blob/v3.2.0/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/EncoderResolutionSuite.scala), I am wondering whether we would like to move all compilation error cases to one test Suite. If we do that, the test file could be pretty big.


-- 
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] AmplabJenkins commented on pull request #35292: [SPARK-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #35292:
URL: https://github.com/apache/spark/pull/35292#issuecomment-1019657146


   Can one of the admins verify this patch?


-- 
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] MaxGekk commented on pull request #35292: [SPARK-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
MaxGekk commented on pull request #35292:
URL: https://github.com/apache/spark/pull/35292#issuecomment-1019932654


   > I am wondering whether we would like to move all compilation error cases to one test Suite.
   
   We should add a test per every error class.
   
   > If we do that, the test file could be pretty big.
   
   Need to try to reduce the number of error classes. For example, https://github.com/apache/spark/pull/35272


-- 
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] ivoson commented on pull request #35292: [SPARK-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
ivoson commented on pull request #35292:
URL: https://github.com/apache/spark/pull/35292#issuecomment-1020287311


   Thanks @MaxGekk . Will add the test case.


-- 
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] ivoson closed pull request #35292: [SPARK-37941][SQL] Use error classes in the compilation errors of casting

Posted by GitBox <gi...@apache.org>.
ivoson closed pull request #35292:
URL: https://github.com/apache/spark/pull/35292


   


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