coderfender commented on code in PR #2143:
URL: https://github.com/apache/datafusion-comet/pull/2143#discussion_r2274815404
##########
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 |
Review Comment:
Thats a good question @kazuyukitanimura . The only numeric datatypes spark
supports with NULL on Overflow are IntegerTypes (int / long -> int32 /int64) .
Along with that Spark supports try arithmetic for datetime literals as well but
that isnt supported in comet yet and fallsback to spark
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]