> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitwise functions

> Spark bitwise functions supported in SparkSQL and Databricks compatibility modes.

Preview

Spark [bitwise functions](https://spark.apache.org/docs/latest/sql-ref-functions-builtin.html#bitwise-functions) in [SparkSQL and Databricks compatibility modes](https://docs.firebolt.io/reference-sql/spark/overview.md). Both modes share these functions. Support is one of: Supported, With limitations, or Not supported. Supported means every example in the Spark reference returns what Spark returns; a note under With limitations quotes a call that differs.

| Function | Support | Notes |
| :- | :- | :- |
| [`SHIFTLEFT`](https://spark.apache.org/docs/4.1.0/api/sql/#shiftleft) | Supported | |
| [`SHIFTRIGHT`](https://spark.apache.org/docs/4.1.0/api/sql/#shiftright) | Supported | |
| [`GETBIT`](https://spark.apache.org/docs/4.1.0/api/sql/#getbit) | With limitations | `getbit(11, 0)` returns `t`, where Spark returns `1`. |
| `BIT_COUNT`, `BIT_GET`, `SHIFTRIGHTUNSIGNED` | Not supported | |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.