317brian commented on code in PR #16843: URL: https://github.com/apache/druid/pull/16843#discussion_r1714187397
########## docs/querying/sql.md: ########## @@ -423,3 +423,17 @@ SELECT count(city) from druid.table where SCALAR_IN_ARRAY(city, ?) ``` sample java code using dynamic parameters is provided [here](../api-reference/sql-jdbc.md#dynamic-parameters). + +## Reserved keywords + +Druid SQL reserves certain keywords which are used in its query language. Apache Druid inherits all of the reserved keywords from [Apache Calcite](https://calcite.apache.org/docs/reference.html#keywords). In addition to these, the following reserved keywords are unique to Apache Druid: ``` + +* **CLUSTERED** +* **PARTITIONED** + +To use the reserved keywords in queries, enclose them in double quotation marks. For example, the reserved keyword **PARTITIONED** can be used in a query if and only if it is correctly quoted: + +```sql +SELECT "CLUSTERED" from druid.table Review Comment: It's erroring on druid.table. I'm not sure why it's not erroring on other occurrences of it on the page, but adding it to the `website/.spelling` should resolve the issue -- 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]
