gengliangwang commented on a change in pull request #35099:
URL: https://github.com/apache/spark/pull/35099#discussion_r778551344
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -4138,7 +4138,7 @@ class SQLConf extends Serializable with Logging {
def enforceReservedKeywords: Boolean = ansiEnabled &&
getConf(ENFORCE_RESERVED_KEYWORDS)
- def ansiFailOnElementNotExists: Boolean = ansiEnabled &&
getConf(ANSI_STRICT_INDEX_OPERATOR)
+ def failOnNonexistentElement: Boolean = ansiEnabled &&
getConf(ANSI_STRICT_INDEX_OPERATOR)
Review comment:
Let's use `strictIndexOperator` instead. The new configuration doesn't
control the function `element_at`/`elt` when the index is out of array bound.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]