You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2023/02/02 01:40:23 UTC
[spark] branch master updated: [SPARK-41931][SQL][FOLLOWUP] Refine example more useful
This is an automated email from the ASF dual-hosted git repository.
gurwls223 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 9148e978cf9 [SPARK-41931][SQL][FOLLOWUP] Refine example more useful
9148e978cf9 is described below
commit 9148e978cf9a404e142a25e10a4d2a1bb171a112
Author: itholic <ha...@databricks.com>
AuthorDate: Thu Feb 2 10:40:11 2023 +0900
[SPARK-41931][SQL][FOLLOWUP] Refine example more useful
### What changes were proposed in this pull request?
This is follow-up for https://github.com/apache/spark/pull/39711 to refine the example based on comment from https://github.com/apache/spark/pull/39705/files/001c0c1abd861abb9a512129475b1f320b512bd3..e969975c42f0c5066762c7907f723c3e4cda27d7#r1090987024
### Why are the changes needed?
We should provide reproducible and useful example in user-facing error message.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
The existing CI should pass
Closes #39836 from itholic/SPARK-41931-followup.
Authored-by: itholic <ha...@databricks.com>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
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 84af7b5d64f..3c23bd3d48c 100644
--- a/core/src/main/resources/error/error-classes.json
+++ b/core/src/main/resources/error/error-classes.json
@@ -609,7 +609,7 @@
},
"STRUCT" : {
"message" : [
- "The definition of \"STRUCT\" type is incomplete. You must provide at least one field type. For example: \"STRUCT<Field1: INT>\"."
+ "The definition of \"STRUCT\" type is incomplete. You must provide at least one field type. For example: \"STRUCT<name STRING, phone DECIMAL(10, 0)>\"."
]
}
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org