File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery
samples/snippets/src/main/java/com/example/bigquery Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public abstract static class Builder
157
157
158
158
/**
159
159
* 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.
161
161
*/
162
162
public abstract Builder setClustering (Clustering clustering );
163
163
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static void createClusteredTable(
55
55
56
56
TimePartitioning partitioning = TimePartitioning .of (TimePartitioning .Type .DAY );
57
57
// 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 .
59
59
Clustering clustering = Clustering .newBuilder ().setFields (clusteringFields ).build ();
60
60
61
61
StandardTableDefinition tableDefinition =
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static void loadTableClustered(
65
65
66
66
TimePartitioning partitioning = TimePartitioning .of (TimePartitioning .Type .DAY );
67
67
// 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 .
69
69
Clustering clustering = Clustering .newBuilder ().setFields (clusteringFields ).build ();
70
70
71
71
LoadJobConfiguration loadJobConfig =
You can’t perform that action at this time.
0 commit comments