GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs(samples): add query external bigtable using temp table by pmakani · Pull Request #763 · googleapis/java-bigquery
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Conversation
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
stephaniewang526
marked this pull request as ready for review
stephaniewang526
approved these changes
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #763 +/- ## ============================================ - Coverage 80.40% 80.39% -0.01% - Complexity 1263 1265 +2 ============================================ Files 79 79 Lines 6517 6525 +8 Branches 740 743 +3 ============================================ + Hits 5240 5246 +6 - Misses 888 889 +1 - Partials 389 390 +1
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| queryExternalBigtableTemp(tableName, sourceUri, query); | ||
| } | ||
|
|
||
| public static void queryExternalBigtableTemp(String tableName, String sourceUri, String query) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
we have a sample schema for bigtable we've been using that would be good to include here so it feels a little more realistic. I'll send you a doc with the schema
table name: mobile-time-series
column families: stats_summary
columns: os_build (STRING), os_name (STRING)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/googleapis/java-bigtable/blob/master/samples/snippets/src/test/java/com/example/bigtable/ReadsTest.java
Let's stick to the existing table schema as shown above instead of using our own schema and stream in data in the beforeClass() method. We can keep the table name as bigquery-samples-test
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .setType("STRING") | ||
| .setEncoding("TEXT") | ||
| .build(); | ||
| BigtableColumnFamily usStates = |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Could you define the column family first and then add the columns and build after? It will make more sense for someone from Bigtable following since column families are the higher level grouping
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@billyjacobson It's not possible to main order, because first we need to create an object of BigtableColumn then we can set those columns in BigtableColumnFamily.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
we could first instantiate an empty BigtableColumnFamily object and then add columns to it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
LGTM -- @billyjacobson PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| String bigqueryTableName = "MY_TABLE_NAME"; | ||
| String sourceUri = | ||
| String.format( | ||
| "https://googleapis.com/bigtable/projects/%s/instances/%s/tables/%s", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems to be causing issue:
com.google.api.gax.rpc.NotFoundException: io.grpc.StatusRuntimeException: NOT_FOUND: Failed to read: projects/{779844219229}/instances/bigquery-samples-instance
Caused by: io.grpc.StatusRuntimeException: NOT_FOUND: Failed to read: projects/{779844219229}/instances/bigquery-samples-instance ```
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🤖 I have created a release \*beep\* \*boop\* --- ### [1.122.2](https://www.github.com/googleapis/java-bigquery/compare/v1.122.1...v1.122.2) (2020-10-08) ### Bug Fixes * bigquery exception get reason and message ([#788](https://www.github.com/googleapis/java-bigquery/issues/788)) ([d783c3a](https://www.github.com/googleapis/java-bigquery/commit/d783c3a2baf80da2aa48c6be555904bd3c33bb1a)) ### Documentation * **samples:** add query external bigtable using permanent table ([#764](https://www.github.com/googleapis/java-bigquery/issues/764)) ([257edfc](https://www.github.com/googleapis/java-bigquery/commit/257edfc14ef09efc4474eb5aba08ccf4d7c199c0)) * **samples:** add query external bigtable using temp table ([#763](https://www.github.com/googleapis/java-bigquery/issues/763)) ([fed28c7](https://www.github.com/googleapis/java-bigquery/commit/fed28c78ca4b70569d5148e67522b0f39321b306)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.