pyspark.sql.functions.bit_or¶
- 
pyspark.sql.functions.bit_or(col: ColumnOrName) → pyspark.sql.column.Column[source]¶
- Aggregate function: returns the bitwise OR of all non-null input values, or null if none. - New in version 3.5.0. - Parameters
- colColumnor str
- target column to compute on. 
 
- col
- Returns
- Column
- the bitwise OR of all non-null input values, or null if none. 
 
 - Examples - >>> df = spark.createDataFrame([[1],[1],[2]], ["c"]) >>> df.select(bit_or("c")).first() Row(bit_or(c)=3)