You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "itholic (via GitHub)" <gi...@apache.org> on 2024/01/10 04:42:22 UTC

[PR] [SPARK-46642][PYTHON] Add `getMessageTemplate` to PySpark error framework [spark]

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

   ### What changes were proposed in this pull request?
   
   This PR proposes to add `getMessageTemplate` to PySpark error framework.
   
   
   ### Why are the changes needed?
   
   To provide users with a more flexible error message management method.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   New API `getMessageTemplate` is added:
   ```python
   try:
       spark.sql("""SELECT a""")
   except AnalysisException as e:
       e.getMessageTemplate()
       // "A column, variable, or function parameter with name <objectName> cannot be resolved."
   ```
   
   
   ### How was this patch tested?
   
   Added UT.
   
   
   ### 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-46642][PYTHON] Add `getMessageTemplate` to PySpark error framework [spark]

Posted by "itholic (via GitHub)" <gi...@apache.org>.
itholic closed pull request #44658: [SPARK-46642][PYTHON] Add `getMessageTemplate` to PySpark error framework
URL: https://github.com/apache/spark/pull/44658


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