sqruff_lib_dialects/
databricks_keywords.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// Datbricks reserved keywords which can be found https://docs.databricks.com/sql/language-manual/sql-ref-reserved-words.html
pub(crate) const RESERVED_KEYWORDS: &[&str] = &[
    "ANTI",
    "CROSS",
    "EXCEPT",
    "FULL",
    "INNER",
    "INTERSECT",
    "JOIN",
    "LATERAL",
    "LEFT",
    "MINUS",
    "NATURAL",
    "ON",
    "RIGHT",
    "SEMI",
    "UNION",
    "USING",
];

pub(crate) const UNRESERVED_KEYWORDS: &[&str] = &[
    "CATALOG",
    "COMPENSATION",
    "CRON",
    "ENFORCED",
    "EVOLUTION",
    "FEATURE",
    "IDENTIFIER",
    "MANAGED",
    "MASK",
    "NORELY",
    "OPTIMIZATION",
    "OPTIMIZE",
    "PREDICTIVE",
    "PROVIDER",
    "PYTHON",
    "RECIPIENT",
    "RELY",
    "SCHEDULE",
    "SQL",
    "TAGS",
    "TIMESERIES",
    "VOLUME",
    "VOLUMES",
    "ZORDER",
];