vtlim commented on a change in pull request #12091: URL: https://github.com/apache/druid/pull/12091#discussion_r779750621
########## File path: docs/querying/sql.md ########## @@ -386,27 +386,27 @@ to FLOAT. At runtime, Druid will widen 32-bit floats to 64-bit for most expressi |`PI`|Constant Pi.| |`ABS(expr)`|Absolute value.| |`CEIL(expr)`|Ceiling.| -|`EXP(expr)`|e to the power of expr.| +|`EXP(expr)`|e to the power of `expr`.| |`FLOOR(expr)`|Floor.| |`LN(expr)`|Logarithm (base e).| |`LOG10(expr)`|Logarithm (base 10).| -|`POWER(expr, power)`|expr to a power.| +|`POWER(expr, power)`|`expr` raised to the power of `power`.| |`SQRT(expr)`|Square root.| -|`TRUNCATE(expr[, digits])`|Truncate expr to a specific number of decimal digits. If digits is negative, then this truncates that many places to the left of the decimal point. Digits defaults to zero if not specified.| -|`TRUNC(expr[, digits])`|Synonym for `TRUNCATE`.| -|`ROUND(expr[, digits])`|`ROUND(x, y)` would return the value of the x rounded to the y decimal places. While x can be an integer or floating-point number, y must be an integer. The type of the return value is specified by that of x. y defaults to 0 if omitted. When y is negative, x is rounded on the left side of the y decimal points. If `expr` evaluates to either `NaN`, `expr` will be converted to 0. If `expr` is infinity, `expr` will be converted to the nearest finite double. | +|`TRUNCATE(expr, [digits])`|Truncate `expr` to a specific number of decimal digits. If digits is negative, then this truncates that many places to the left of the decimal point. Digits defaults to zero if not specified.| +|`TRUNC(expr, [digits])`|Synonym for `TRUNCATE`.| +|`ROUND(expr, [digits])`|`ROUND(x, y)` would return the value of the x rounded to the y decimal places. While x can be an integer or floating-point number, y must be an integer. The type of the return value is specified by that of x. y defaults to 0 if omitted. When y is negative, x is rounded on the left side of the y decimal points. If `expr` evaluates to either `NaN`, `expr` will be converted to 0. If `expr` is infinity, `expr` will be converted to the nearest finite double. | |`x + y`|Addition.| |`x - y`|Subtraction.| |`x * y`|Multiplication.| |`x / y`|Division.| |`MOD(x, y)`|Modulo (remainder of x divided by y).| -|`SIN(expr)`|Trigonometric sine of an angle expr.| -|`COS(expr)`|Trigonometric cosine of an angle expr.| -|`TAN(expr)`|Trigonometric tangent of an angle expr.| -|`COT(expr)`|Trigonometric cotangent of an angle expr.| -|`ASIN(expr)`|Arc sine of expr.| -|`ACOS(expr)`|Arc cosine of expr.| -|`ATAN(expr)`|Arc tangent of expr.| +|`SIN(expr)`|Trigonometric sine of an angle `expr`.| +|`COS(expr)`|Trigonometric cosine of an angle `expr`.| +|`TAN(expr)`|Trigonometric tangent of an angle `expr`.| +|`COT(expr)`|Trigonometric cotangent of an angle `expr`.| +|`ASIN(expr)`|Arc sine of `expr`.| +|`ACOS(expr)`|Arc cosine of `expr`.| +|`ATAN(expr)`|Arc tangent of `expr`.| |`ATAN2(y, x)`|Angle theta from the conversion of rectangular coordinates (x, y) to polar * coordinates (r, theta).| |`DEGREES(expr)`|Converts an angle measured in radians to an approximately equivalent angle measured in degrees| |`RADIANS(expr)`|Converts an angle measured in degrees to an approximately equivalent angle measured in radians| Review comment: ```suggestion |`DEGREES(expr)`|Converts an angle measured in radians to an approximately equivalent angle measured in degrees.| |`RADIANS(expr)`|Converts an angle measured in degrees to an approximately equivalent angle measured in radians.| ``` -- 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: commits-unsubscr...@druid.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org