Commit 832f7b5
fix: match SQL Server schema names case-sensitively in profiling DDF
On SQL Server's default (case-insensitive) collation, a table group whose
configured schema case differs from the database's actual case (e.g. 'common'
vs 'Common') silently broke Freshness monitor generation and Data Catalog
stats. Profiling stamps profile_results.schema_name with the entered literal
while the DDF stamps data_table_chars/data_column_chars with the DB's actual
case, so the case-sensitive PostgreSQL joins between them returned nothing;
Volume_Trend (data_table_chars only) still worked, masking it.
Add COLLATE Latin1_General_BIN to the schema comparison in the mssql
get_schema_ddf so matching is case-sensitive, consistent with TestGen's
case-sensitive joins and the other flavors. Migration 0194 realigns existing
table_group_schema values to the DB's actual case (from data_table_chars),
scoped to mssql connections, single unambiguous schema, case-only differences.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7797ba9 commit 832f7b5
2 files changed
Lines changed: 35 additions & 1 deletion
File tree
- testgen/template
- dbupgrade
- flavors/mssql/data_chars
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
0 commit comments