| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Woohoo! Just one small integer conversion request.
Sorry, something went wrong.
|
|
||
| path = '/projects/{}/jobs/{}'.format(project, job_name) | ||
|
|
||
| resource = self._connection.api_request( |
| self.priority = configuration.get('priority') | ||
| self.write_disposition = configuration.get('writeDisposition') | ||
| self.maximum_billing_tier = configuration.get('maximumBillingTier') | ||
| self.maximum_bytes_billed = configuration.get('maximumBytesBilled') |
| return QueryJob.from_api_repr(resource, self) | ||
| raise ValueError('Cannot parse job resource') | ||
|
|
||
| def get_job(self, job_name, project=None): |
| configuration.get('maxBadRecords')) | ||
| self.null_marker = configuration.get('nullMarker') | ||
| self.quote_character = configuration.get('quote') | ||
| self.skip_leading_rows = _int_or_none( |
| self.assertEqual(param.to_api_repr(), EXPECTED) | ||
|
|
||
|
|
||
| class Test__query_param_from_api_repr(unittest.TestCase): |
"maximumBytesBilled": {
"type": "string",
"description": "[Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.",
"format": "int64"
},
From https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest
Since it needs to represent a 64-bit integer the JSON number type is insufficient, so it must be sent as a string.
| self.assertEqual(param.to_api_repr(), EXPECTED) | ||
|
|
||
|
|
||
| class Test__query_param_from_api_repr(unittest.TestCase): |
* Allow assigning 'None' to '_TypedProperty' properties. * Ensure that configuration properties are copied when (re)loading jobs.
* Allow assigning 'None' to '_TypedProperty' properties. * Ensure that configuration properties are copied when (re)loading jobs.
* Allow assigning 'None' to '_TypedProperty' properties. * Ensure that configuration properties are copied when (re)loading jobs.
* Allow assigning 'None' to '_TypedProperty' properties. * Ensure that configuration properties are copied when (re)loading jobs.
| Back | FazBrowse Home | New Git URL |
Note that 177caa5 fixes a longstanding bug: Job configuration properties were not replaced when loading a job from the server. Unfortunately, I can't find the bug after the huge pile of issue closures this week.
The helper for constructing concrete query params added in cc4ba04 is a more general form of the one I did in-place in #3802, and should replace that version.