-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bigquery: Fix bug for sourceFormat Bigtable ExternalTableDefinition. #6427
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6427 +/- ##
============================================
- Coverage 46.34% 46.06% -0.29%
- Complexity 27967 27974 +7
============================================
Files 2613 2613
Lines 287929 287827 -102
Branches 33756 32896 -860
============================================
- Hits 133443 132577 -866
+ Misses 144267 144205 -62
- Partials 10219 11045 +826
Continue to review full report at Codecov.
|
| } | ||
|
|
||
| static Builder newBuilder() { | ||
| public static Builder newBuilder() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| } | ||
|
|
||
| static Builder newBuilder() { | ||
| public static Builder newBuilder() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| } | ||
|
|
||
| static final class Builder { | ||
| public static final class Builder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| builder.setReadRowkeyAsString(options.getReadRowkeyAsString()); | ||
| builder.setColumnFamilies( | ||
| Lists.transform(options.getColumnFamilies(), BigtableColumnFamily.FROM_PB_FUNCTION)); | ||
| if (null != options.getIgnoreUnspecifiedColumnFamilies()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverse is more conventional; that is,
options != null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unclear why null isn't allowed since that's the only reason to set Boolean instead of boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| if (null != options.getIgnoreUnspecifiedColumnFamilies()) { | ||
| builder.setIgnoreUnspecifiedColumnFamilies(options.getIgnoreUnspecifiedColumnFamilies()); | ||
| } | ||
| if (null != options.getReadRowkeyAsString()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| if (null != options.getReadRowkeyAsString()) { | ||
| builder.setReadRowkeyAsString(options.getReadRowkeyAsString()); | ||
| } | ||
| if (null != options.getColumnFamilies()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| /** | ||
| * Creates a builder for an ExternalTableDefinition object. | ||
| * | ||
| * @param sourceUri The fully-qualified URIs that point to your data in Google Cloud. For Google |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --> the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
@shollyman PTAL. |
Fixes #6417