diff --git a/docs/source/user-guide/expressions.md b/docs/source/user-guide/expressions.md index 652c986914..970b94a06e 100644 --- a/docs/source/user-guide/expressions.md +++ b/docs/source/user-guide/expressions.md @@ -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 | diff --git a/docs/spark_expressions_support.md b/docs/spark_expressions_support.md index ffafc8f3d7..3cf2d98f3e 100644 --- a/docs/spark_expressions_support.md +++ b/docs/spark_expressions_support.md @@ -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