You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2023/04/03 10:59:30 UTC
[GitHub] [spark] zhengruifeng commented on a diff in pull request #40641: [SPARK-43011][SQL] `array_insert` should fail with 0 index
zhengruifeng commented on code in PR #40641:
URL: https://github.com/apache/spark/pull/40641#discussion_r1155807804
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -542,6 +542,12 @@
],
"sqlState" : "22003"
},
+ "ARRAY_INSERT_BY_INDEX_ZERO" : {
+ "message" : [
+ "The index 0 is invalid. An index shall be either < 0 or > 0 (the first element has index 1)."
+ ],
+ "sqlState" : "22003"
Review Comment:
I just reuse the `sqlState` of `ELEMENT_AT_BY_INDEX_ZERO`, is it fine? @itholic
--
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