dongjoon-hyun commented on a change in pull request #30560:
URL: https://github.com/apache/spark/pull/30560#discussion_r533646575
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeExtractors.scala
##########
@@ -394,7 +394,7 @@ trait GetMapValueUtil extends BinaryExpression with
ImplicitCastInputTypes {
val keyJavaType = CodeGenerator.javaType(keyType)
nullSafeCodeGen(ctx, ev, (eval1, eval2) => {
val keyNotFoundBranch = if (failOnError) {
- s"""throw new NoSuchElementException("Key " + $eval2 + " does not
exist.");"""
+ s"""throw new java.util.NoSuchElementException("Key " + $eval2 + "
does not exist.");"""
Review comment:
+1 for @maropu 's advice.
----------------------------------------------------------------
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]