asdf2014 commented on code in PR #16812:
URL: https://github.com/apache/druid/pull/16812#discussion_r1696217172


##########
docs/querying/sql-functions.md:
##########
@@ -1430,11 +1503,28 @@ Trims characters from the trailing end of an expression.
 
 ## SAFE_DIVIDE
 
-`SAFE_DIVIDE(x, y)`
+Returns `x` divided by `y`, guarded on division by 0.
 
-**Function type:** [Scalar, numeric](sql-scalar.md#numeric-functions)
+* **Syntax:** `SAFE_DIVIDE(x, y)`
+* **Function type:** Scalar, numeric 
 
-Returns `x` divided by `y`, guarded on division by 0.
+<details><summary>Example</summary>
+
+The following calculates divisions of integer `78` by integer `10`.
+
+```sql
+  SELECT SAFE_DIVIDE(78, 10) AS "safe_division"

Review Comment:
   ```suggestion
   SELECT SAFE_DIVIDE(78, 10) AS "safe_division"
   ```



-- 
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]

Reply via email to