pyspark.sql.functions.
shiftRightUnsigned
Unsigned shift the given value numBits right.
New in version 1.5.0.
Examples
>>> df = spark.createDataFrame([(-42,)], ['a']) >>> df.select(shiftRightUnsigned('a', 1).alias('r')).collect() [Row(r=9223372036854775787)]