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
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
Original file line number Diff line number Diff 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 =
Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments