Skip to content

Commit e2eb65b

Browse files
authored
Make BQ docs consistent (#36247)
* Make BQ docs consistent * Big query doc consistency * cleanup sql * spotless * Fix bad edit
1 parent 6344678 commit e2eb65b

File tree

2 files changed

+7
-6
lines changed
  • sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery
  • website/www/site/content/en/documentation/io/built-in

2 files changed

+7
-6
lines changed

sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ public class BigQueryIO {
597597
private static final String TABLE_REGEXP = "[-_\\p{L}\\p{N}\\p{M}$@ ]{1,1024}";
598598

599599
/**
600-
* Matches table specifications in the form {@code "[project_id]:[dataset_id].[table_id]"} or
601-
* {@code "[dataset_id].[table_id]"}.
600+
* Matches table specifications in the form {@code "[project_id]:[dataset_id].[table_id]"}, {@code
601+
* "[project_id].[dataset_id].[table_id]"}, or {@code "[dataset_id].[table_id]"}.
602602
*/
603603
private static final String DATASET_TABLE_REGEXP =
604604
String.format(
@@ -853,8 +853,9 @@ public Read withTestServices(BigQueryServices testServices) {
853853
}
854854

855855
/**
856-
* Reads a BigQuery table specified as {@code "[project_id]:[dataset_id].[table_id]"} or {@code
857-
* "[dataset_id].[table_id]"} for tables within the current project.
856+
* Reads a BigQuery table specified as {@code "[project_id]:[dataset_id].[table_id]"}, {@code
857+
* "[project_id].[dataset_id].[table_id]"}, or {@code "[dataset_id].[table_id]"} for tables
858+
* within the current project.
858859
*/
859860
public Read from(String tableSpec) {
860861
return new Read(this.inner.from(tableSpec));

website/www/site/content/en/documentation/io/built-in/google-bigquery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ object.
9898
#### Using a string
9999

100100
To specify a table with a string, use the format
101-
`[project_id]:[dataset_id].[table_id]` to specify the fully-qualified BigQuery
102-
table name.
101+
`[project_id]:[dataset_id].[table_id]` or `[project_id].[dataset_id].[table_id]`
102+
to specify the fully-qualified BigQuery table name.
103103

104104
{{< highlight java >}}
105105
{{< code_sample "examples/java/src/main/java/org/apache/beam/examples/snippets/Snippets.java" BigQueryTableSpec >}}

0 commit comments

Comments
 (0)