leanken commented on a change in pull request #30560:
URL: https://github.com/apache/spark/pull/30560#discussion_r533306977



##########
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:
       > @leanken, can we add a test?
   
   maybe you can try repo ObjectExpressionsSuite and RegexpExpressionsSuite in 
your environment so that you can get clearer picture.




----------------------------------------------------------------
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]

Reply via email to