Skip to content

Commit

Permalink
format-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Dec 27, 2024
1 parent 925be2d commit 6c84d24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions velox/docs/functions/spark/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Decimal Functions
Returns negated value of x (r = -x). Corresponds to Spark's operator ``-``.

::

SELECT unaryminus(cast(-9999999999999999999.9999999999999999999 as DECIMAL(38, 19))); -- 9999999999999999999.9999999999999999999

.. spark:function:: unscaled_value(x) -> bigint
Expand All @@ -152,6 +153,7 @@ Decimal Special Forms
After rounding we may need one more digit in the integral part.

::
SELECT (round(cast (9.9 as decimal(2, 1)), 0)); -- decimal 10
SELECT (round(cast (99 as decimal(2, 0)), -1)); -- decimal 100

Expand Down

0 comments on commit 6c84d24

Please sign in to comment.