andygrove commented on code in PR #2895:
URL: https://github.com/apache/datafusion-comet/pull/2895#discussion_r2616403127


##########
spark/src/main/scala/org/apache/comet/iceberg/IcebergReflection.scala:
##########
@@ -204,9 +204,11 @@ object IcebergReflection extends Logging {
       case _: NoSuchMethodException =>
         try {
           // If not directly available, access via operations/metadata
-          val opsMethod = table.getClass.getMethod("operations")
+          val opsMethod = table.getClass.getDeclaredMethod("operations")
+          opsMethod.setAccessible(true)

Review Comment:
   nit: maybe add a helper method for this pattern of `getDeclaredMethod` and 
`setAccessible` since this is repeated. Can be in a future PR



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