Open xtrmstep opened 1 month ago
@xtrmstep Thanks for filing an issue. It is possible to pass None
as a value by passing it as an element of a list or an empty list. Does this not work for your use case? If not, could you please describe why you need to be able to pass NULL as argument itself?
arg_values = [None]
# arg_values = []
bigquery.ArrayQueryParameter("arg_name", "STRING", arg_values)
Hi @suzmue,
I would like the column to have a NULL value, not just individual elements within the array. An empty array or a null element inside the array isn't the same as having the column itself set to NULL. This is necessary to differentiate between three states:
It's possible to achieve this with SQL but not through the current parameters, which leads me to believe the implementation is incomplete.
Thank you!
Hi,
When attempting to pass None as a value to represent a NULL in a BigQuery stored procedure, the process fails with a
NoneType
object is not iterable error. The issue is observed while usinggoogle-cloud-bigquery==3.25.0
.Steps to Reproduce:
Actual Behavior:
The procedure fails with the following error message:
Expected Behavior:
There should be a way to pass NULL to arguments. For example,
None
could be accepted as a valid input to represent NULL in the BigQuery procedure, allowing for proper execution without raising any exceptions.Regards,