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/05/24 18:13:15 UTC

[GitHub] [spark] MaxGekk opened a new pull request, #36655: [SPARK-39255][SQL][3.3] Improve error messages

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

   ### What changes were proposed in this pull request?
   In the PR, I propose to improve errors of the following error classes:
   1. NON_PARTITION_COLUMN - `a non-partition column name` -> `the non-partition column`
   2. UNSUPPORTED_SAVE_MODE - `a not existent path` -> `a non existent path`.
   3. INVALID_FIELD_NAME. Quote ids to follow the rules https://github.com/apache/spark/pull/36621.
   4. FAILED_SET_ORIGINAL_PERMISSION_BACK. It is renamed to RESET_PERMISSION_TO_ORIGINAL.
   5. NON_LITERAL_PIVOT_VALUES - Wrap error's expression by double quotes. The PR adds new helper method `toSQLExpr()` for that.
   6. CAST_INVALID_INPUT - Add the recommendation: `... Correct the syntax for the value before casting it, or change the type to one appropriate for the value.`
   
   This is a backport of https://github.com/apache/spark/pull/36635.
   
   ### Why are the changes needed?
   To improve user experience with Spark SQL by making error message more clear.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, it changes user-facing error messages.
   
   ### How was this patch tested?
   By running the affected test suites:
   ```
   $ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"
   $ build/sbt "sql/testOnly *QueryCompilationErrorsDSv2Suite"
   $ build/sbt "sql/testOnly *QueryCompilationErrorsSuite"
   $ build/sbt "sql/testOnly *QueryExecutionAnsiErrorsSuite"
   $ build/sbt "sql/testOnly *QueryExecutionErrorsSuite"
   $ build/sbt "sql/testOnly *QueryParsingErrorsSuite*"
   ```
   
   Lead-authored-by: Max Gekk <ma...@gmail.com>
   Co-authored-by: Maxim Gekk <ma...@gmail.com>
   Signed-off-by: Max Gekk <ma...@gmail.com>
   (cherry picked from commit 625afb4e1aefda59191d79b31f8c94941aedde1e)
   Signed-off-by: Max Gekk <ma...@gmail.com>


-- 
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 closed pull request #36655: [SPARK-39255][SQL][3.3] Improve error messages

Posted by GitBox <gi...@apache.org>.
MaxGekk closed pull request #36655: [SPARK-39255][SQL][3.3] Improve error messages
URL: https://github.com/apache/spark/pull/36655


-- 
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 #36655: [SPARK-39255][SQL][3.3] Improve error messages

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

   Merging to 3.3. Thank you, @dongjoon-hyun @gengliangwang and @cloud-fan for review.


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