Skip to content

NoSuchMethodException when reflecting Iceberg TableOperations.current() #3894

@karuppayya

Description

@karuppayya

Describe the bug

Comet's Iceberg reflection path calls table.operations().current().
The current implementation uses getDeclaredMethod("current") on the concrete operations runtime class.
Some implementations (e.g. Hive/Glue style), current() is declared on superclass (BaseMetastoreTableOperations), not on the subclass itself.
This can throw NoSuchMethodException.

Steps to reproduce

Query an Iceberg table backd by Hive Catalog

Expected behavior

current() should be resolved by walking the class hierarchy , so inherited methods are found correctly.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions