| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent af4902a commit 8a030d8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1048,7 +1048,8 @@ def write_to_table( | |||
| 1048 | 1048 | priority=None, | |
| 1049 | 1049 | create_disposition=None, | |
| 1050 | 1050 | write_disposition=None, | |
| 1051 | - use_legacy_sql=None | ||
| 1051 | + use_legacy_sql=None, | ||
| 1052 | + maximum_billing_tier=None | ||
| 1052 | 1053 | ): | |
| 1053 | 1054 | """ | |
| 1054 | 1055 | Write query result to table. If dataset or table is not provided, | |
@@ -1077,9 +1078,10 @@ def write_to_table( | |||
| 1077 | 1078 | One of the JOB_CREATE_* constants | |
| 1078 | 1079 | write_disposition : str, optional | |
| 1079 | 1080 | One of the JOB_WRITE_* constants | |
| 1080 | - use_legacy_sql: | ||
| 1081 | + use_legacy_sql: bool, optional | ||
| 1081 | 1082 | If False, the query will use BigQuery's standard SQL (https://cloud.google.com/bigquery/sql-reference/) | |
| 1082 | - | ||
| 1083 | + maximum_billing_tier : integer, optional | ||
| 1084 | + Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default. For more information, see https://cloud.google.com/bigquery/pricing#high-compute | ||
| 1083 | 1085 | ||
| 1084 | 1086 | Returns | |
| 1085 | 1087 | ------- | |
@@ -1106,6 +1108,9 @@ def write_to_table( | |||
| 1106 | 1108 | if allow_large_results is not None: | |
| 1107 | 1109 | configuration['allowLargeResults'] = allow_large_results | |
| 1108 | 1110 | ||
| 1111 | + if maximum_billing_tier is not None: | ||
| 1112 | + configuration['maximumBillingTier'] = maximum_billing_tier | ||
| 1113 | + | ||
| 1109 | 1114 | if use_query_cache is not None: | |
| 1110 | 1115 | configuration['useQueryCache'] = use_query_cache | |
| 1111 | 1116 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments