You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "MaxGekk (via GitHub)" <gi...@apache.org> on 2023/11/09 11:53:16 UTC

[PR] [WIP][SQL] Enforce the error classes in sub-classes of `AnalysisException` [spark]

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

   ### What changes were proposed in this pull request?
   In the PR, I propose to enforce creation of `AnalysisException` sub-class exceptions with an error class always. In particular, it converts the constructor with a message to private one, so, callers have to create a sub-class of `AnalysisException` with an error class.
   
   ### Why are the changes needed?
   This simplifies migration on error classes.
   
   ### Does this PR introduce _any_ user-facing change?
   No since user code doesn't throw `AnalysisException` and its sub-classes in regular cases.
   
   ### How was this patch tested?
   By existing test suites, for instance:
   ```
   $ build/sbt "sql/testOnly *QueryParsingErrorsSuite"
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


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


Re: [PR] [SPARK-45857][SQL] Enforce the error classes in sub-classes of `AnalysisException` [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #43731: [SPARK-45857][SQL] Enforce the error classes in sub-classes of `AnalysisException`
URL: https://github.com/apache/spark/pull/43731


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