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