Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/1038#discussion_r71061850
--- Diff: tajo-docs/src/main/sphinx/functions/math_func_and_operators.rst
---
@@ -179,115 +179,120 @@ Math Functions and Operators
Returns constant value of pi
- :rtype: float8
+ :rtype: FLOAT8
:example:
.. code-block:: sql
select pi();
> 3.141592653589793
-.. function:: pow (x float, y float)
+.. function:: pow (x FLOAT*, y FLOAT*)
Returns value of x raised to the power of y
:param x: base number
:param y: exponent
- :rtype: float8
+ :rtype: FLOAT8
:example:
.. code-block:: sql
select pow(2.0, 10.0);
> 1024.0
-.. function:: radians (number float)
+.. function:: radians (number FLOAT*)
Converts degrees to radians
:param number: degree value
- :rtype: float8
+ :rtype: FLOAT8
:example:
.. code-block:: sql
select radians(45.0);
> 0.7853981633974483
-.. function:: random(number int4)
+.. function:: random(number INT4)
Returns a pseudorandom number.
:param number: range restriction
- :rtype: int4
+ :rtype: INT4
:example:
.. code-block:: sql
select random(10);
> 4
-.. function:: round (number int|float)
+.. function:: round (number INT*|FLOAT*)
Rounds to nearest integer
:param number: target number
- :rtype: int8
+ :rtype: INT8
:example:
.. code-block:: sql
select round(5.1);
> 5
-.. function:: sign (number int|float)
+.. function:: sign (number INT*|FLOAT*)
Returns sign of argument as -1, 0, 1
:param number: target number
- :rtype: float8
+ :rtype: FLOAT8
:example:
.. code-block:: sql
select sign(-8.4);
> -1.0
-.. function:: sin (number float)
+.. function:: SIN (number FLOAT*)
--- End diff --
The function name seems to be lowercase.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---