-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The following SQL can be executed in clickhouse-cli, but is not parsed correctly
panic: line 0:43 <EOF> or ';' was expected, but got: "."
select table_name from "information_schema"."tables" limit 1
^

Note that TableIdentifier supports double quotes, but not single quotes.
select table_name from "tables" limit 1 -- valid
select table_name from 'tables' limit 1 -- single quotes is valid
select table_name from information_schema.tables limit 1 -- valid
select table_name from "information_schema"."tables" limit 1 -- valid
select table_name from information_schema."tables" limit 1 -- valid
select table_name from "information_schema".tables limit 1 -- valid
select table_name from 'information_schema'.'tables' limit 1 -- !!! single quotes is invalid
select table_name from 'information_schema'.tables limit 1 -- !!! single quotes is invalid
select table_name from information_schema.'tables' limit 1 -- !!! single quotes is invalid
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working