Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-024 committed Dec 19, 2024
1 parent 5464dfa commit 6eb87f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ public org.apache.spark.sql.connector.catalog.Table alterTable(
return loadTable(ident);
} catch (Catalog.TableNotExistException e) {
throw new NoSuchTableException(ident);
} catch (Catalog.ColumnAlreadyExistException | Catalog.ColumnNotExistException e) {
} catch (Catalog.ColumnAlreadyExistException
| Catalog.ColumnNotExistException
| Catalog.TableNoPermissionException e) {
throw new RuntimeException(e);
}
}
Expand Down Expand Up @@ -432,6 +434,8 @@ public void renameTable(Identifier oldIdent, Identifier newIdent)
throw new NoSuchTableException(oldIdent);
} catch (Catalog.TableAlreadyExistException e) {
throw new TableAlreadyExistsException(newIdent);
} catch (Catalog.TableNoPermissionException e) {
throw new RuntimeException(String.format("Table %s no permission", oldIdent));
}
}

Expand All @@ -450,6 +454,8 @@ protected org.apache.spark.sql.connector.catalog.Table loadSparkTable(
}
} catch (Catalog.TableNotExistException e) {
throw new NoSuchTableException(ident);
} catch (Catalog.TableNoPermissionException e) {
throw new RuntimeException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public InternalRow[] call(InternalRow args) {
} catch (Catalog.TableNotExistException e) {
throw new IllegalArgumentException(
"Target paimon table does not exist: " + targetTable);
} catch (Catalog.TableNoPermissionException e) {
throw new IllegalArgumentException("Target paimon table no permission: " + targetTable);
}

try {
Expand Down

0 comments on commit 6eb87f5

Please sign in to comment.