Skip to content

Commit

Permalink
Fix Hive getTableHandle to reject views
Browse files Browse the repository at this point in the history
Currently it's never called by engine if something is a view, but a
connector should not rely on unwritten "ordering guarantees".
  • Loading branch information
findepi committed Feb 23, 2024
1 parent 184ba44 commit 9c0c159
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ public HiveTableHandle getTableHandle(ConnectorSession session, SchemaTableName
return null;
}

if (isSomeKindOfAView(table)) {
return null;
}
if (isDeltaLakeTable(table)) {
throw new TrinoException(UNSUPPORTED_TABLE_TYPE, format("Cannot query Delta Lake table '%s'", tableName));
}
Expand Down

0 comments on commit 9c0c159

Please sign in to comment.