ektravel commented on code in PR #16745: URL: https://github.com/apache/druid/pull/16745#discussion_r1681675946
########## docs/querying/sql-functions.md: ########## @@ -697,11 +739,30 @@ Returns the value of a numeric or string expression corresponding to the earlies ## EXP -`EXP(<NUMERIC>)` +Calculates _e_ raised to the power of the numeric expression. -**Function type:** [Scalar, numeric](sql-scalar.md#numeric-functions) +* **Syntax:** `EXP(<NUMERIC>)` +* **Function type:** Scalar, numeric -Calculates _e_ raised to the power of the numeric expression. +<details><summary>Example</summary> + +The following example raise _e_ to the power of `trip_id`, from the `trips_xaa` datasource. + +```sql +SELECT + "trip_id" AS "exponent_value", + EXP(trip_id) AS "Exp" +FROM "trips_xaa" +LIMIT 1 +``` +Returns the following: + +| `exponent_value` | `Exp` | +| -- | -- | +| `1` | `2.7182818284590455` | Review Comment: Makes sense to me. -- 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