File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -740,9 +740,12 @@ def udf(
740
740
BigQuery managed function.
741
741
742
742
.. note::
743
- The udf must be self-contained, i.e. it must not contain any
743
+ This feature is in preview. The code in the udf must be
744
+ (1) self-contained, i.e. it must not contain any
744
745
references to an import or variable defined outside the function
745
- body.
746
+ body, and
747
+ (2) Python 3.11 compatible, as that is the environment
748
+ in which the code is executed in the cloud.
746
749
747
750
.. note::
748
751
Please have following IAM roles enabled for you:
@@ -801,7 +804,7 @@ def udf(
801
804
https://pip.pypa.io/en/stable/reference/requirements-file-format/.
802
805
"""
803
806
804
- warnings .warn ("udf is in preview." , category = bfe .PreviewWarning )
807
+ warnings .warn ("udf is in preview." , category = bfe .PreviewWarning , stacklevel = 5 )
805
808
806
809
# Some defaults may be used from the session if not provided otherwise.
807
810
session = self ._resolve_session (session )
Original file line number Diff line number Diff line change @@ -1426,9 +1426,12 @@ def udf(
1426
1426
[BigQuery managed user-defined function](https://cloud.google.com/bigquery/docs/user-defined-functions-python).
1427
1427
1428
1428
.. note::
1429
- The udf must be self-contained, i.e. it must not contain any
1429
+ This feature is in preview. The code in the udf must be
1430
+ (1) self-contained, i.e. it must not contain any
1430
1431
references to an import or variable defined outside the function
1431
- body.
1432
+ body, and
1433
+ (2) Python 3.11 compatible, as that is the environment
1434
+ in which the code is executed in the cloud.
1432
1435
1433
1436
.. note::
1434
1437
Please have BigQuery Data Editor (roles/bigquery.dataEditor) IAM
You can’t perform that action at this time.
0 commit comments