This repository was archived by the owner on Mar 23, 2026. It is now read-only.
docs(samples): add create range partition table#458
Merged
stephaniewang526 merged 2 commits intogoogleapis:masterfrom Jun 17, 2020
Merged
docs(samples): add create range partition table#458stephaniewang526 merged 2 commits intogoogleapis:masterfrom
stephaniewang526 merged 2 commits intogoogleapis:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
=========================================
Coverage 81.36% 81.36%
Complexity 1225 1225
=========================================
Files 77 77
Lines 6218 6218
Branches 690 691 +1
=========================================
Hits 5059 5059
Misses 802 802
Partials 357 357 Continue to review full report at Codecov.
|
stephaniewang526
suggested changes
Jun 17, 2020
| import com.google.cloud.bigquery.TableId; | ||
| import com.google.cloud.bigquery.TableInfo; | ||
|
|
||
| // [START bigquery_create_table_range_partitioned] |
Contributor
There was a problem hiding this comment.
this needs to go above import statements so that ppl know what are needed
samples/snippets/src/main/java/com/example/bigquery/CreateRangePartitionedTable.java
Show resolved
Hide resolved
| private ByteArrayOutputStream bout; | ||
| private PrintStream out; | ||
|
|
||
| private static final String BIGQUERY_DATASET_NAME = System.getenv("BIGQUERY_DATASET_NAME"); |
Contributor
There was a problem hiding this comment.
We've decided to just call requireEnv method here to eliminate one other method called. please see this sample for details -
| assertThat(bout.toString()).contains("Range partitioned table created successfully"); | ||
|
|
||
| // Clean up | ||
| DeleteTable.deleteTable(BIGQUERY_DATASET_NAME, tableName); |
Contributor
There was a problem hiding this comment.
let's put this in teardown() - see sample
Contributor
|
stephaniewang526
approved these changes
Jun 17, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: