snowflake.snowpark.functions.bitor_agg¶

snowflake.snowpark.functions.bitor_agg(e: Union[snowflake.snowpark.column.Column, str]) → Column[source]¶

Returns the bitwise OR of all non-NULL records in a group. If all records inside a group are NULL, a NULL is returned.

Example:

>>> df = session.create_dataframe([[15], [26], [12], [14], [8]], schema=["a"])
>>> df.select(bitor_agg("a").alias("result")).collect()
[Row(RESULT=31)]
Copy