Commit 95e208f
committed
Fix Snowflake resync failure due to case mismatch in _resync table suffix (#4184)
The resync suffix was appended in lowercase ("_resync"), producing
mixed-case identifiers like "ACCOUNTS_resync". However, getColsFromTable()
in qrep.go unconditionally applied strings.ToUpper(), converting it to
"ACCOUNTS_RESYNC". Since Snowflake treats quoted identifiers as
case-sensitive, the table lookup failed with "does not exist".
Fix in Snowflake's getColsFromTable: replace the unconditional
strings.ToUpper with snowflakeSchemaTableNormalize so quoted mixed-case
identifiers are looked up consistently with how they are created. The
shared cdc_flow.go is left untouched since the suffix handling is a
Snowflake-specific concern.1 parent 6d9c248 commit 95e208f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments