bug(presto): tableDDL throws UnsupportedOperationException (wrong override signature)
Author: Aias00Created Aug 4, 2026Updated Sep 9, 2026
Description
PrestoMetaData defines a 3-arg tableDDL(String, String, String) returning "", but DefaultMetaService has no such signature — the framework calls the 4-arg tableDDL(Connection, String, String, String) (which the base throws UnsupportedOperationException for). So viewing/exporting a Presto table's DDL throws instead of returning empty. The 3-arg method is dead code.
Location
chat2db-community-plugins/chat2db-community-presto/.../PrestoMetaData.java:7-9; base chat2db-community-spi/.../DefaultMetaService.java:72-73 (4-arg throws).
Impact
Presto table DDL view/export throws UnsupportedOperationException.
Suggested fix
Override the 4-arg tableDDL(Connection, String, String, String) to return "" (the 3-arg method's intent), instead of throwing.
Related existing
None.
Source: OtterMind/Chat2DB