LuciferYang commented on code in PR #42099:
URL: https://github.com/apache/spark/pull/42099#discussion_r1276032428


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/command/AlignAssignmentsSuiteBase.scala:
##########
@@ -147,7 +147,7 @@ abstract class AlignAssignmentsSuiteBase extends 
AnalysisTest {
   private val v2Catalog = {
     val newCatalog = mock(classOf[TableCatalog])
     when(newCatalog.loadTable(any())).thenAnswer((invocation: 
InvocationOnMock) => {
-      val ident = invocation.getArgument[Identifier](0)
+      val ident = invocation.getArguments()(0).asInstanceOf[Identifier]

Review Comment:
   Why do we need to change this part of the code in this pr?
   
   I guess you encountered a mockito dependency conflict when running UT  in 
Intellij?  Because there will be a mockito-all-1.10.19.jar in `External 
Libraries`, and this jar  lacks the corresponding API? But this may only occur 
when import spark as sbt project and running UT using Intellij ...
   
    I'm not sure if we should fix it this way
   
   
   



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

Reply via email to