tomtongue commented on code in PR #11262: URL: https://github.com/apache/iceberg/pull/11262#discussion_r1800706543
########## api/src/test/java/org/apache/iceberg/ParameterizedTestExtension.java: ########## @@ -225,7 +222,11 @@ private Stream<TestTemplateInvocationContext> createContextForParameters( Stream<Object[]> parameterValueStream, String testNameTemplate, ExtensionContext context) { // Search fields annotated by @Parameter final List<Field> parameterFields = - AnnotationSupport.findAnnotatedFields(context.getRequiredTestClass(), Parameter.class); + AnnotationSupport.findAnnotatedFields( + context.getRequiredTestClass(), + Parameter.class, + field -> true, + HierarchyTraversalMode.TOP_DOWN); Review Comment: From my checking, I believe this should be `TOP_DOWN` for finding annotation fields. Actually when I tested running Spark tests with bottom-up, several tests failed because `@Parameter` in their parent classes were used first. Let me share the error logs. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org