Skip to content

Commit

Permalink
Merge pull request #1536 from k-hal/add-support-for-bigquery-gce-conf…
Browse files Browse the repository at this point in the history
…iguration

[BigQuery] Add: support for additional configuration in BigQueryGCE
  • Loading branch information
arikfr authored Jan 24, 2017
2 parents 38f6f82 + 53536a1 commit df0d1f3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion redash/query_runner/big_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,27 @@ def enabled(cls):

@classmethod
def configuration_schema(cls):
return {}
return {
'type': 'object',
'properties': {
'totalMBytesProcessedLimit': {
"type": "number",
'title': 'Total MByte Processed Limit'
},
'userDefinedFunctionResourceUri': {
"type": "string",
'title': 'UDF Source URIs (i.e. gs://bucket/date_utils.js, gs://bucket/string_utils.js )'
},
'useStandardSql': {
"type": "boolean",
'title': "Use Standard SQL (Beta)",
},
'loadSchema': {
"type": "boolean",
"title": "Load Schema"
}
}
}

def _get_project_id(self):
return requests.get('http://metadata/computeMetadata/v1/project/project-id', headers={'Metadata-Flavor': 'Google'}).content
Expand Down

0 comments on commit df0d1f3

Please sign in to comment.