diff --git a/ibis/backends/clickhouse/identifiers.py b/ibis/backends/clickhouse/identifiers.py deleted file mode 100644 index fdf3b1865474..000000000000 --- a/ibis/backends/clickhouse/identifiers.py +++ /dev/null @@ -1,119 +0,0 @@ -from __future__ import annotations - -_identifiers = frozenset( - { - "add", - "aggregate", - "all", - "alter", - "and", - "as", - "asc", - "between", - "by", - "cached", - "case", - "cast", - "change", - "class", - "column", - "columns", - "comment", - "create", - "cross", - "data", - "database", - "databases", - "date", - "datetime", - "desc", - "describe", - "distinct", - "div", - "double", - "drop", - "else", - "end", - "escaped", - "exists", - "explain", - "external", - "fields", - "fileformat", - "first", - "float", - "format", - "from", - "full", - "function", - "functions", - "group", - "having", - "if", - "in", - "inner", - "inpath", - "insert", - "int", - "integer", - "intermediate", - "interval", - "into", - "is", - "join", - "last", - "left", - "like", - "limit", - "lines", - "load", - "location", - "metadata", - "not", - "null", - "offset", - "on", - "or", - "order", - "outer", - "partition", - "partitioned", - "partitions", - "real", - "refresh", - "regexp", - "rename", - "replace", - "returns", - "right", - "row", - "schema", - "schemas", - "select", - "set", - "show", - "stats", - "stored", - "string", - "symbol", - "table", - "tables", - "then", - "to", - "union", - "use", - "using", - "values", - "view", - "when", - "where", - "with", - } -) - - -def quote_identifier(name, quotechar="`", force=False): - if force or name.count(" ") or name in _identifiers: - return f"{quotechar}{name}{quotechar}" - else: - return name