-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres database schema generation not maintaining case sensitivity of names and not including the joins based on the referential integrity #120
Comments
@dgkmurthy Hey Keshava! Thanks for posting this! Yep. Here we should have lowercase comparison: |
Fixed in #122 |
for case sensitive table and column names Issue: cube-js#120
…umn names (#124) * Bug Fixes: - Schema generator bug with case sensitive Table and Column names - Column name ambiguity issue during table joins with similar column names fix by forcing the alias for column names - Query bug fix to mandatorily include double quotes for the alias when running query against table names with restricted keywords such as "case" * Revert "Bug Fixes:" This reverts commit a0b304e. * Bug Fix: Schema generator bug with case sensitive Table and Column names Issue #120 * Bug Fix: Issue with generting joins in the schema for case sensitive table and column names Issue: #120 * Escape Names and RegExp for filter * Regex pattern update
- Schema generator bug with case sensitive Table and Column names - Column name ambiguity issue during table joins with similar column names fix by forcing the alias for column names - Query bug fix to mandatorily include double quotes for the alias when running query against table names with restricted keywords such as "case" Revert "Bug Fixes:" This reverts commit a0b304e. Bug Fix: Schema generator bug with case sensitive Table and Column names Issue cube-js#120 Bug Fix: Issue with generting joins in the schema for case sensitive table and column names Issue: cube-js#120 Escape Names and RegExp for filter Regex pattern update Query bug fix to force to include cube alias in the schema and escape character for the alias when running query against table names with restricted keywords such as "case" Used escapeColumnName function instead of inline escape characters
for case sensitive table and column names Issue: cube-js#120
This still seems to be an issue in v0.18.3 with time dimensions and Postgres. |
@craigharman Hey Craig! Could you please share generated schema? |
Please see below. Note changing startTime to start_time or starttime and updating database column name accordingly fixes the error.
joins: {
}, measures: { dimensions: {
} |
Describe the bug
When generating the schema in the Playground or CLI selecting multiple table names on Postgres is not generating the schema file having the joins automatically based on the referential integrity/foreign key columns.
To Reproduce
Create tables and columns having case sensitive names with double quotes.
Steps to reproduce the behavior
there you see no entries for joins property.
Expected behavior
Version:
Latest
The text was updated successfully, but these errors were encountered: