v.23.8Improvement
Simplifying Case Sensitivity in ClickHouse's Information Schema
Closes #49510. Currently we have database and table names case-sensitive, but BI tools queryinformation_schemasometimes in lowercase, sometimes in uppercase. For this reason we haveinformation_schemadatabase, containing lowercase tables, such asinformation_schema.tablesandINFORMATION_SCHEMAdatabase, containing uppercase tables, such asINFORMATION_SCHEMA.TABLES. But some tools are queryingINFORMATION_SCHEMA.tablesandinformation_schema.TABLES. The proposed solution is to duplicate both lowercase and uppercase tables in lowercase and uppercaseinformation_schemadatabase. #52695 (Yarik Briukhovetskyi).
Why it matters
This feature addresses compatibility issues with BI tools that queryinformation_schema using inconsistent case for database and table names. Previously, separate lowercase and uppercase databases existed, but some tools use mixed-case queries like INFORMATION_SCHEMA.tables. By duplicating tables in both lowercase and uppercase within the information_schema database, ClickHouse ensures all case variants are recognized, improving usability and integration with external tools.How to use it
Users do not need to perform any special action; ClickHouse automatically provides both lowercase and uppercase versions of theinformation_schema tables within the information_schema database. Queries can use any case combination for information_schema and its tables, for example:SELECT FROM information_schema.tables;
SELECT FROM INFORMATION_SCHEMA.TABLES;
SELECT * FROM INFORMATION_SCHEMA.tables;All will return the appropriate metadata transparently.