dongjoon-hyun commented on a change in pull request #30297:
URL: https://github.com/apache/spark/pull/30297#discussion_r521437206
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
##########
@@ -2042,10 +2053,17 @@ case class ElementAt(left: Expression, right:
Expression)
} else {
""
}
+
+ val failOnErrorBranch = if (failOnError) {
+ s"""throw new ArrayIndexOutOfBoundsException("Invalid index: " +
$index);""".stripMargin
Review comment:
Shall we remove `.stripMargin` because this is a single line?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]