Skip to content

Commit

Permalink
docs(bigquery): Update supported types for time partition type
Browse files Browse the repository at this point in the history
closes: #7848
pr: #8045
  • Loading branch information
quartzmo authored Oct 20, 2020
1 parent ffdff97 commit d23896f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
10 changes: 6 additions & 4 deletions google-cloud-bigquery/lib/google/cloud/bigquery/load_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,9 @@ def time_partitioning?
# The period for which the destination table will be time partitioned, if
# any. See [Partitioned Tables](https://cloud.google.com/bigquery/docs/partitioned-tables).
#
# @return [String, nil] The time partition type. Currently the only supported
# value is "DAY", or `nil` if not present.
# @return [String, nil] The time partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively; or `nil` if not present.
#
# @!group Attributes
#
Expand Down Expand Up @@ -1499,8 +1500,9 @@ def range_partitioning_end= range_end
# BigQuery does not allow you to change partitioning on an existing
# table.
#
# @param [String] type The time partition type. Currently the only
# supported value is "DAY".
# @param [String] type The time partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively.
#
# @example
# require "google/cloud/bigquery"
Expand Down
12 changes: 8 additions & 4 deletions google-cloud-bigquery/lib/google/cloud/bigquery/query_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,9 @@ def time_partitioning?
# The period for which the destination table will be partitioned, if
# any. See [Partitioned Tables](https://cloud.google.com/bigquery/docs/partitioned-tables).
#
# @return [String, nil] The partition type. Currently the only supported
# value is "DAY", or `nil` if not present.
# @return [String, nil] The partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively; or `nil` if not present.
#
# @!group Attributes
#
Expand Down Expand Up @@ -1302,13 +1303,16 @@ def range_partitioning_end= range_end
##
# Sets the partitioning for the destination table. See [Partitioned
# Tables](https://cloud.google.com/bigquery/docs/partitioned-tables).
# The supported types are `DAY`, `HOUR`, `MONTH`, and `YEAR`, which will
# generate one partition per day, hour, month, and year, respectively.
#
# You can only set the partitioning field while creating a table.
# BigQuery does not allow you to change partitioning on an existing
# table.
#
# @param [String] type The partition type. Currently the only
# supported value is "DAY".
# @param [String] type The partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively.
#
# @example
# require "google/cloud/bigquery"
Expand Down
14 changes: 9 additions & 5 deletions google-cloud-bigquery/lib/google/cloud/bigquery/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,10 @@ def time_partitioning?
# The period for which the table is time partitioned, if any. See
# [Partitioned Tables](https://cloud.google.com/bigquery/docs/partitioned-tables).
#
# @return [String, nil] The time partition type. Currently the only supported
# value is "DAY", or `nil` if the object is a reference (see
# {#reference?}).
# @return [String, nil] The time partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively; or `nil` if not set or the object is a
# reference (see {#reference?}).
#
# @!group Attributes
#
Expand All @@ -265,13 +266,16 @@ def time_partitioning_type
##
# Sets the time partitioning type for the table. See [Partitioned
# Tables](https://cloud.google.com/bigquery/docs/partitioned-tables).
# The supported types are `DAY`, `HOUR`, `MONTH`, and `YEAR`, which will
# generate one partition per day, hour, month, and year, respectively.
#
# You can only set time partitioning when creating a table as in
# the example below. BigQuery does not allow you to change time partitioning
# on an existing table.
#
# @param [String] type The time partition type. Currently the only
# supported value is "DAY".
# @param [String] type The time partition type. The supported types are `DAY`,
# `HOUR`, `MONTH`, and `YEAR`, which will generate one partition per day,
# hour, month, and year, respectively.
#
# @example
# require "google/cloud/bigquery"
Expand Down

0 comments on commit d23896f

Please sign in to comment.