Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: update clustering field docstrings (#774)
  • Loading branch information
ryanyuan committed Oct 1, 2020
1 parent 4a80a74 commit 58e2e4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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
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
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

0 comments on commit 58e2e4e

Please sign in to comment.