You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2022/11/24 05:52:53 UTC
[spark] branch master updated: [MINOR][SQL] Fix error message for `UNEXPECTED_INPUT_TYPE`
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 <ha...@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 <ha...@databricks.com>
Co-authored-by: Haejoon Lee <44...@users.noreply.github.com>
Signed-off-by: Max Gekk <ma...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org