You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we claim postgresql dialect compatibility, table identifiers in SQL should be normalized to lowercase unless quoted.
To Reproduce
> create table t1 as select* from (values (11, 'a')) as sq;
> selectcolumn1 from T1;Plan("Table or CTE with name 'T1' not found")
Expected behavior
> create table t1 as select* from (values (11, 'a')) as sq;
> selectcolumn1 from T1;+---------+| column1 |+---------+| 11 |+---------+
> selectcolumn1 from "T1";Plan("Table or CTE with name 'T1' not found")
The text was updated successfully, but these errors were encountered:
mkmik
changed the title
SQ: Table name identifiers should be normalized to lowercase unless quoted
SQL: Table name identifiers should be normalized to lowercase unless quoted
Feb 7, 2022
I re-ran the reproducer above and the issue still reproduces at current master (ca952bd).
❯ create table t1 as select * from (values (11, 'a')) as sq;
0 rows in set. Query took 0.021 seconds.
❯ select column1 from T1;
Plan("Table or CTE with name 'T1' not found")
Is information_schema.TaBlEs lowercased because it's a special schema or could it be because it's a view?
Describe the bug
Since we claim postgresql dialect compatibility, table identifiers in SQL should be normalized to lowercase unless quoted.
To Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: