Skip to content
Permalink
Browse files
docs: update clustering field docstrings (#774)
  • Loading branch information
ryanyuan committed Oct 1, 2020
1 parent 4a80a74 commit 58e2e4ee8c4f3bf8391bbc1e2ff07b63e6247c69
@@ -157,7 +157,7 @@ static StreamingBuffer fromPb(Streamingbuffer streamingBufferPb) {

/**
* 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);

@@ -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 =
@@ -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 =

0 comments on commit 58e2e4e

Please sign in to comment.