Skip to content

Commit

Permalink
throw rather than returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
nastra committed Oct 2, 2023
1 parent 545dc9b commit beaa5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/java/org/apache/iceberg/view/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public interface View {
* @return this view's location
*/
default String location() {
return null;
throw new UnsupportedOperationException("Retrieving a view's location is not supported");
}

/**
Expand Down

0 comments on commit beaa5f6

Please sign in to comment.