Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug statement to StandardTableDefinition #128

Merged
Expand Up @@ -272,7 +272,27 @@ static StandardTableDefinition fromPb(Table tablePb) {
builder.setStreamingBuffer(StreamingBuffer.fromPb(tablePb.getStreamingBuffer()));
}
if (tablePb.getTimePartitioning() != null) {
builder.setTimePartitioning(TimePartitioning.fromPb(tablePb.getTimePartitioning()));
try {
builder.setTimePartitioning(TimePartitioning.fromPb(tablePb.getTimePartitioning()));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(
"Got unexpected time partitioning "
+ tablePb.getTimePartitioning()
+ " in table "
+ tablePb.getTableReference(),
e);
} catch (NullPointerException e) {
try {
throw new NullPointerException(
"Got unexpected time partitioning "
+ tablePb.getTimePartitioning()
+ " in table "
+ tablePb.getTableReference())
.initCause(e);
} catch (Throwable throwable) {
throwable.printStackTrace();
stephaniewang526 marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
if (tablePb.getRangePartitioning() != null) {
builder.setRangePartitioning(RangePartitioning.fromPb(tablePb.getRangePartitioning()));
Expand Down