Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/source/user-guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ The following Spark expressions are currently available. Any known compatibility
| IntegralDivide (`div`) | All operands are cast to DecimalType (in case the input type is not already decima type) with precision 19 and scale 0. Please set `spark.comet.cast.allowIncompatible` to `true` to enable DataFusion’s cast operation for LongType inputs. |
| Remainder (`%`) | |

## Binary Try Arithmetic

| Expression | Notes |
|------------|----------------------------------------------------------------------------|
| `try_add` | Adds operands (IntegerTypes only) or results NULL incase of overflow |
| `try_sub` | Subtracts operands (IntegerTypes only) or results NULL incase of overflow |
| `try_mul` | Multiplies operands (IntegerTypes only) or results NULL incase of overflow |
| `try_div` | Subtracts operands (IntegerTypes only) or results NULL incase of overflow |

## Conditional Expressions

| Expression | Notes |
Expand Down
4 changes: 2 additions & 2 deletions docs/spark_expressions_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@
- [x] sqrt
- [x] tan
- [ ] tanh
- [ ] try_add
- [x] try_add
- [x] try_divide
- [ ] try_multiply
- [x] try_multiply
- [x] try_subtract
- [x] unhex
- [ ] width_bucket
Expand Down