forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10383 ] Support decimal operation not precision loss mode (10383)
Signed-off-by: Yuan Zhou <[email protected]>
- Loading branch information
Showing
13 changed files
with
356 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
================================ | ||
SparkRegistration Configuration | ||
================================ | ||
|
||
struct SparkRegistrationConfig | ||
--------------------- | ||
.. list-table:: | ||
:widths: 20 10 10 70 | ||
:header-rows: 1 | ||
|
||
* - Property Name | ||
- Type | ||
- Default Value | ||
- Description | ||
* - allowPrecisionLoss | ||
- bool | ||
- true | ||
- When true, establishing the result type of an arithmetic operation according to Hive behavior and SQL ANSI 2011 specification, i.e. | ||
rounding the decimal part of the result if an exact representation is not | ||
possible. Otherwise, NULL is returned when the actual result cannot be represented with the calculated decimal type. Now we support add, | ||
subtract, multiply and divide operations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.