fix:Dynamically introduce INFORMATION_SCHEMA_NAME into DruidMeta's sql statement#12384
fix:Dynamically introduce INFORMATION_SCHEMA_NAME into DruidMeta's sql statement#12384huyuanfeng2018 wants to merge 1 commit intoapache:masterfrom
Conversation
|
The change itself seems fine: creating a constant for the information schema name. +1 (non-binding) on that change. The PR description suggests that this change is made in the context of changing the schema name. The challenge is that, unlike a typical RDBMS, Druid SQL identifiers are case sensitive. So, Druid only knows about this item if the name is upper case: The reason it is upper-case, it turns out, is that Given that the standard says the name must be upper case, I wonder which DB (or client library) expects the name to be lower case? |
|
This pull request has been marked as stale due to 60 days of inactivity. |
|
This pull request/issue has been closed due to lack of activity. If you think that |
Description
When I modify the INFORMATION_SCHEMA_NAME value in DruidCalciteSchemaModule (possibly for compatibility with other databases that support sql, such as changing uppercase to lowercase), the following error will be reported when using jdbc to connect to druid:
Object 'INFORMATION_SCHEMA' not found; did you mean 'information_schema'?
Fixed the bug ...
Modify the sql statement in the DruidMeta.java class, in which the hard-written INCOMPLETE_SCHEMA table name is changed to dynamic application
This PR has: