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

docs(samples): add omni query on external table aws #830

Closed
wants to merge 4 commits into from

Conversation

pmakani
Copy link
Contributor

@pmakani pmakani commented Oct 20, 2020

No description provided.

@pmakani pmakani requested review from stephaniewang526 and a team October 20, 2020 13:30
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 20, 2020
String datasetName = "MY_DATASET_NAME";
String tableName = "MY_TABLE_NAME";
// Create a aws connection
// projects/{project_id}/locations/{location_id}/connections/{connection_id}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really an AWS connection string?

Copy link

@lesv lesv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few Q's, please answer / consider, otherwise LGTM

.forEach(row -> row.forEach(val -> System.out.printf("%s,", val.toString())));

System.out.println("Query on aws external permanent table performed successfully.");
} catch (BigQueryException | InterruptedException e) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that your showing BigQueryException | InterruptedException here, but should we just propagate them, rather than catching and printing stuff?

Comment on lines +50 to +52
String query =
String.format(
"SELECT * FROM s%:%s.%s WHERE name LIKE 'W%%'", projectId, datasetName, tableName);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you mention that this is searching for things starting w/ "W" here?

@stephaniewang526
Copy link
Contributor

Fixing all the issues in #835 835

@pmakani pmakani deleted the QueryExternalTableAws branch October 21, 2020 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants