SIGN
This page describes the SIGN function in Lenses SQL.
Last updated
This page describes the SIGN function in Lenses SQL.
Last updated
2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.
Returns +1 if a value is positive or -1 if a value is negative.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
We use the NEG function to emulate a negative value in this function.
✓
✓