-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BigQuery UDF support #2007
Add BigQuery UDF support #2007
Conversation
@@ -937,6 +938,12 @@ def __init__(self, name, query, client): | |||
reference/v2/jobs#configuration.query.useLegacySql | |||
""" | |||
|
|||
udf_resources = _TypedProperty( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@takbab I think @dhermes was talking about dropping the use of @property
def udf_resources(self):
"""List of user-defined resources.
:rtype: list of :class:`UdfResource`
:returns: the list, if set, or None
"""
return list(self._udf_resources) if self._udf_resources else None
@udf_resources.setter
def udf_resources(self, value):
"""Update list of user-defined resources
:type value: list of :class:`UdfResource`
:param value: the new list
:raises: ValueError, ir the items in the list are not all instances of
:class:`UdfResource`
"""
if not all((isinstance(item, UdfResource) for item in value)):
raise ValueError("pass a list of UdfResource instances")
self._udf_resources = tuple(value) |
See #2015 for an alternative. |
I see, thanks! |
Add a field to support BigQuery UDF.
https://cloud.google.com/bigquery/docs/reference/v2/jobs
(migrated from #1988)