Skip to content

Commit 67a031d

Browse files
authored
docs: Update to support try arithmetic functions (#2143)
1 parent 6fd2f9f commit 67a031d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/source/user-guide/expressions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ The following Spark expressions are currently available. Any known compatibility
4444
| 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. |
4545
| Remainder (`%`) | |
4646

47+
## Binary Try Arithmetic
48+
49+
| Expression | Notes |
50+
|------------|----------------------------------------------------------------------------|
51+
| `try_add` | Adds operands (IntegerTypes only) or results NULL incase of overflow |
52+
| `try_sub` | Subtracts operands (IntegerTypes only) or results NULL incase of overflow |
53+
| `try_mul` | Multiplies operands (IntegerTypes only) or results NULL incase of overflow |
54+
| `try_div` | Subtracts operands (IntegerTypes only) or results NULL incase of overflow |
55+
4756
## Conditional Expressions
4857

4958
| Expression | Notes |

docs/spark_expressions_support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@
330330
- [x] sqrt
331331
- [x] tan
332332
- [ ] tanh
333-
- [ ] try_add
333+
- [x] try_add
334334
- [x] try_divide
335-
- [ ] try_multiply
335+
- [x] try_multiply
336336
- [x] try_subtract
337337
- [x] unhex
338338
- [ ] width_bucket

0 commit comments

Comments
 (0)