ektravel commented on code in PR #16745: URL: https://github.com/apache/druid/pull/16745#discussion_r1681672827
########## docs/querying/sql-functions.md: ########## @@ -28,17 +28,39 @@ sidebar_label: "All functions" This document describes the SQL language. ::: +This page provides a reference of all Druid SQL functions in alphabetical order. The **Learn More** at the end of each function section provides further documentation. -This page provides a reference of all Druid SQL functions in alphabetical order. -Click the linked function type for documentation on a particular function. +The examples for each function uses the following datasets that come included with Apache Druid: +* `flight-carriers`: `FlightCarrierOnTime (1 month)` +* `trips_xaa`: `NYC Taxi cabs (3 files)` ## ABS -`ABS(<NUMERIC>)` +Calculates the absolute value of a numeric expression. -**Function type:** [Scalar, numeric](sql-scalar.md#numeric-functions) +* **Syntax:** `ABS(<NUMERIC>)` +* **Function type:** Scalar, numeric -Calculates the absolute value of a numeric expression. +<details><summary>Example</summary> + +The following applies the ABS function to the `ArrDelay` column, from the `flight-carriers` datasource. Review Comment: ```suggestion The following example applies the ABS function to the `ArrDelay` column from the `flight-carriers` datasource. ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
