mirror of
https://github.com/apache/druid.git
synced 2025-02-09 03:24:55 +00:00
Added a topic listing reserved keywords (#16843)
This commit is contained in:
parent
8c030feefc
commit
6cfdeb3894
@ -423,3 +423,16 @@ 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).
|
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 "PARTITIONED" from druid.table
|
||||||
|
```
|
@ -324,6 +324,7 @@ deserializes
|
|||||||
downtimes
|
downtimes
|
||||||
druid
|
druid
|
||||||
druid–kubernetes-extensions
|
druid–kubernetes-extensions
|
||||||
|
druid.table
|
||||||
e.g.
|
e.g.
|
||||||
encodings
|
encodings
|
||||||
endian
|
endian
|
||||||
|
Loading…
x
Reference in New Issue
Block a user