Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Oct 17, 2024
1 parent dbc29d6 commit ca94756
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ public Table getTable(Identifier identifier) throws TableNotExistException {
return wrapped.getTable(identifier);
}

@Override
public boolean tableExists(Identifier identifier) {
return wrapped.tableExists(identifier);
}

@Override
public boolean viewExists(Identifier identifier) {
return wrapped.viewExists(identifier);
}

@Override
public View getView(Identifier identifier) throws ViewNotExistException {
return wrapped.getView(identifier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,6 @@ public static String possibleHiveConfPath() {
}

private static boolean isView(Table table) {
return TableType.valueOf(table.getTableType()) != TableType.VIRTUAL_VIEW;
return TableType.valueOf(table.getTableType()) == TableType.VIRTUAL_VIEW;
}
}

0 comments on commit ca94756

Please sign in to comment.