Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public abstract static class Builder

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void createClusteredTable(

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

StandardTableDefinition tableDefinition =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void loadTableClustered(

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

LoadJobConfiguration loadJobConfig =
Expand Down