This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new e2eb65b2cdd Make BQ docs consistent (#36247)
e2eb65b2cdd is described below
commit e2eb65b2cdd0e2cdfc21e4405c8fafebf7bbeaac
Author: Danny McCormick <[email protected]>
AuthorDate: Tue Sep 23 16:40:54 2025 -0400
Make BQ docs consistent (#36247)
* Make BQ docs consistent
* Big query doc consistency
* cleanup sql
* spotless
* Fix bad edit
---
.../java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java | 9 +++++----
.../site/content/en/documentation/io/built-in/google-bigquery.md | 4 ++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git
a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java
b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java
index e8bf4ebc4f7..e3f9de3b7ab 100644
---
a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java
+++
b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java
@@ -597,8 +597,8 @@ public class BigQueryIO {
private static final String TABLE_REGEXP = "[-_\\p{L}\\p{N}\\p{M}$@
]{1,1024}";
/**
- * Matches table specifications in the form {@code
"[project_id]:[dataset_id].[table_id]"} or
- * {@code "[dataset_id].[table_id]"}.
+ * Matches table specifications in the form {@code
"[project_id]:[dataset_id].[table_id]"}, {@code
+ * "[project_id].[dataset_id].[table_id]"}, or {@code
"[dataset_id].[table_id]"}.
*/
private static final String DATASET_TABLE_REGEXP =
String.format(
@@ -853,8 +853,9 @@ public class BigQueryIO {
}
/**
- * Reads a BigQuery table specified as {@code
"[project_id]:[dataset_id].[table_id]"} or {@code
- * "[dataset_id].[table_id]"} for tables within the current project.
+ * Reads a BigQuery table specified as {@code
"[project_id]:[dataset_id].[table_id]"}, {@code
+ * "[project_id].[dataset_id].[table_id]"}, or {@code
"[dataset_id].[table_id]"} for tables
+ * within the current project.
*/
public Read from(String tableSpec) {
return new Read(this.inner.from(tableSpec));
diff --git
a/website/www/site/content/en/documentation/io/built-in/google-bigquery.md
b/website/www/site/content/en/documentation/io/built-in/google-bigquery.md
index f53fc5eb72f..9c205f09266 100644
--- a/website/www/site/content/en/documentation/io/built-in/google-bigquery.md
+++ b/website/www/site/content/en/documentation/io/built-in/google-bigquery.md
@@ -98,8 +98,8 @@ object.
#### Using a string
To specify a table with a string, use the format
-`[project_id]:[dataset_id].[table_id]` to specify the fully-qualified BigQuery
-table name.
+`[project_id]:[dataset_id].[table_id]` or
`[project_id].[dataset_id].[table_id]`
+to specify the fully-qualified BigQuery table name.
{{< highlight java >}}
{{< code_sample
"examples/java/src/main/java/org/apache/beam/examples/snippets/Snippets.java"
BigQueryTableSpec >}}