You are viewing documentation about an older version (1.12.1). View latest version

snowflake.snowpark.functions.bitnot

snowflake.snowpark.functions.bitnot(e: Union[Column, str]) Column[source]

Returns the bitwise negation of a numeric expression.

Example

>>> df = session.create_dataframe([1], schema=["a"])
>>> df.select(bitnot("a")).collect()[0][0]
-2
Copy