pyspark.sql.functions.shiftrightunsigned

pyspark.sql.functions.shiftrightunsigned(col: ColumnOrName, numBits: int) → pyspark.sql.column.Column

Unsigned shift the given value numBits right.

Examples

>>> df = spark.createDataFrame([(-42,)], ['a'])
>>> df.select(shiftrightunsigned('a', 1).alias('r')).collect()
[Row(r=9223372036854775787)]