Skip to content

Commit 58e2e4e

Browse files
authored
docs: update clustering field docstrings (#774)
1 parent 4a80a74 commit 58e2e4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public abstract static class Builder
157157

158158
/**
159159
* Set the clustering configuration for the table. If not set, the table is not clustered.
160-
* Clustering is only available for partitioned tables.
160+
* BigQuery supports clustering for both partitioned and non-partitioned tables.
161161
*/
162162
public abstract Builder setClustering(Clustering clustering);
163163

samples/snippets/src/main/java/com/example/bigquery/CreateClusteredTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void createClusteredTable(
5555

5656
TimePartitioning partitioning = TimePartitioning.of(TimePartitioning.Type.DAY);
5757
// Clustering fields will be consisted of fields mentioned in the schema.
58-
// As of now, another condition is that the table should be partitioned.
58+
// BigQuery supports clustering for both partitioned and non-partitioned tables.
5959
Clustering clustering = Clustering.newBuilder().setFields(clusteringFields).build();
6060

6161
StandardTableDefinition tableDefinition =

samples/snippets/src/main/java/com/example/bigquery/LoadTableClustered.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void loadTableClustered(
6565

6666
TimePartitioning partitioning = TimePartitioning.of(TimePartitioning.Type.DAY);
6767
// Clustering fields will be consisted of fields mentioned in the schema.
68-
// As of now, another condition is that the table should be partitioned.
68+
// BigQuery supports clustering for both partitioned and non-partitioned tables.
6969
Clustering clustering = Clustering.newBuilder().setFields(clusteringFields).build();
7070

7171
LoadJobConfiguration loadJobConfig =

0 commit comments

Comments
 (0)