bitwise_funcs Expression Audits#
Audit notes for expressions in this category that have been audited. Absence of an entry means the expression has not been audited yet, not that it is unsupported. See the user guide Spark Expression Support for current support status.
&#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseAnd(left, right) extends BinaryArithmeticoverIntegralType. Comet routes viaCometBitwiseAndto the proto’sbitwise_andbinary expression.Spark 4.0.1 (audited 2026-05-27): semantics unchanged;
NullIntoleranttrait replaced bynullIntolerant: Boolean.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
<<#
Spark 3.4.3 (audited 2026-05-27): only the function form
shiftleft(...)exists; the<<operator alias is added in Spark 4.0.Spark 3.5.8 (audited 2026-05-27): identical to 3.4.3.
Spark 4.0.1 (audited 2026-05-27):
<<parses toShiftLeft(the samecase classasshiftleft) via a parser alias.ShiftLeftnow extends a sharedBitShiftOperationtrait; eval semantics unchanged. CometCometShiftLeftcasts therightoperand toLongTypewhenleft.dataType == LongTypebecause DataFusion’s bitwise shift requires matching operand types.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
>>#
Spark 3.4.3 (audited 2026-05-27): same as
<<history — only the function form exists pre-4.0.Spark 3.5.8 (audited 2026-05-27): identical to 3.4.3.
Spark 4.0.1 (audited 2026-05-27):
>>parses toShiftRight. CometCometShiftRightmirrors the same operand-cast logic asCometShiftLeft.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
^#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseXor(left, right) extends BinaryArithmeticoverIntegralType. Comet routes viaCometBitwiseXorto the proto’sbitwise_xorbinary expression.Spark 4.0.1 (audited 2026-05-27): semantics unchanged;
nullIntolerantfield refactor.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
bit_count#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseCount(child) extends UnaryExpression; acceptsIntegralTypeorBooleanTypeand returns the population count asIntegerType. Wired asCometScalarFunction("bit_count").Spark 4.0.1 (audited 2026-05-27): semantics unchanged.
Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
bit_get#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseGet(left, right) extends BinaryExpression;inputTypes = (IntegralType, IntegerType) -> ByteType. The position is bounds-checked at runtime viaBitwiseGetUtil.checkPosition. Comet routes viaCometBitwiseGetto the nativebit_getscalar.Spark 4.0.1 (audited 2026-05-27): semantics unchanged.
Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
getbit#
Spark 3.4.3 (audited 2026-05-27): registry alias of
BitwiseGet. Same support asbit_get.Spark 3.5.8 (audited 2026-05-27): identical to 3.4.3.
Spark 4.0.1 (audited 2026-05-27): identical to 3.4.3.
Spark 4.1.1 (audited 2026-05-27): identical to 3.4.3.
shiftright#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline. Function name for
ShiftRight. Same support as the>>operator alias added in 4.0.Spark 4.0.1 (audited 2026-05-27): identical to 3.5.8 (the
>>operator is the only addition).Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
shiftrightunsigned#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
ShiftRightUnsigned(left, right) extends BinaryExpression; uses Java’s>>>(zero-fill) semantics. Comet wires asCometScalarFunction("shiftrightunsigned")(added in #4375).Spark 4.0.1 (audited 2026-05-27): now extends the shared
BitShiftOperationtrait; eval semantics unchanged. The>>>operator alias is added at the parser level.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
|#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseOr(left, right) extends BinaryArithmeticoverIntegralType. Comet routes viaCometBitwiseOrto the proto’sbitwise_orbinary expression.Spark 4.0.1 (audited 2026-05-27): semantics unchanged;
nullIntolerantfield refactor.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
~#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BitwiseNot(child) extends UnaryExpression; acceptsIntegralTypeand returns the bitwise complement of the same type. Comet routes viaCometBitwiseNotto the nativebitwise_notscalar.Spark 4.0.1 (audited 2026-05-27): semantics unchanged;
nullIntolerantfield refactor.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.