Skip to content

[BEAM-7705] Update BigQuery docs with new code snippets - #12559

Merged
chamikaramj merged 1 commit into
apache:masterfrom
davidcavazos:bigquery-samples-docs
Sep 1, 2020
Merged

[BEAM-7705] Update BigQuery docs with new code snippets#12559
chamikaramj merged 1 commit into
apache:masterfrom
davidcavazos:bigquery-samples-docs

Conversation

@davidcavazos

@davidcavazosdavidcavazos commented Aug 12, 2020

Copy link
Copy Markdown

Updating the BigQuery docs to use the new code snippets from #12118

R: @rosetn
R: @aaltay

Staged: http://apache-beam-website-pull-requests.storage.googleapis.com/12559/documentation/io/built-in/google-bigquery/index.html


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

LangSDKDataflowFlinkSamzaSparkTwister2
GoBuild Status---Build Status---Build Status---
JavaBuild StatusBuild Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build StatusBuild Status
Build Status
Build Status
Build Status
PythonBuild Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
---Build Status---
XLangBuild Status---Build Status---Build Status---

Pre-Commit Tests Status (on master branch)

---JavaPythonGoWebsite
Non-portableBuild StatusBuild Status
Build Status
Build Status
Build StatusBuild Status
Portable---Build Status------

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels

See CI.md for more information about GitHub Actions CI.

@rosetnrosetn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes! Thank you for working on these updates! 🙏

LGTM

@meredithslota

Copy link
Copy Markdown

@chamikaramj Do you have a moment to take a look at these? Thank you! :)


{{< highlight java >}}
{{< code_sample "examples/java/src/main/java/org/apache/beam/examples/snippets/Snippets.java" BigQueryDataTypes >}}
{{< code_sample "examples/java/src/main/java/org/apache/beam/examples/snippets/transforms/io/gcp/bigquery/BigQueryTableRowCreate.java" bigquery_table_row_create >}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you intend to use underscore separated text (not camel case) for Java ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We usually do region tags in snake_case for all languages regardless of the language style. The reason is that by keeping them consistent through all languages, it's easier to build tools to parse them and compare between which snippets exist for each language.

@chamikaramjchamikaramj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM other than one comment. Thanks.

@davidcavazos

Copy link
Copy Markdown
Author

@aaltay all tests are passing and we have an approval. Is this ready to merge?

@chamikaramj
chamikaramj merged commit 4fd5ff4 into apache:masterSep 1, 2020
@davidcavazos
davidcavazos deleted the bigquery-samples-docs branch September 1, 2020 19:01
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@davidcavazos@meredithslota@chamikaramj@rosetn