This is an automated email from the ASF dual-hosted git repository. maxgekk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 57f3f0fdd3a [MINOR][SQL] Fix error message for `UNEXPECTED_INPUT_TYPE` 57f3f0fdd3a is described below commit 57f3f0fdd3acd136ddf4904193bfa4e7102a255c Author: itholic <haejoon....@databricks.com> AuthorDate: Thu Nov 24 08:52:37 2022 +0300 [MINOR][SQL] Fix error message for `UNEXPECTED_INPUT_TYPE` ### What changes were proposed in this pull request? This PR proposes to correct the minor syntax on error message for `UNEXPECTED_INPUT_TYPE`, ### Why are the changes needed? Error message should be started with upper-case character, and clear to read. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? ``` ./build/sbt “sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*” ``` Closes #38766 from itholic/minor-UNEXPECTED_INPUT_TYPE. Lead-authored-by: itholic <haejoon....@databricks.com> Co-authored-by: Haejoon Lee <44108233+itho...@users.noreply.github.com> Signed-off-by: Max Gekk <max.g...@gmail.com> --- core/src/main/resources/error/error-classes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/error/error-classes.json b/core/src/main/resources/error/error-classes.json index f2e7783efdd..239f43ce6e8 100644 --- a/core/src/main/resources/error/error-classes.json +++ b/core/src/main/resources/error/error-classes.json @@ -364,7 +364,7 @@ }, "UNEXPECTED_INPUT_TYPE" : { "message" : [ - "parameter <paramIndex> requires <requiredType> type, however, <inputSql> is of <inputType> type." + "Parameter <paramIndex> requires the <requiredType> type, however <inputSql> has the type <inputType>." ] }, "UNEXPECTED_NULL" : { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org