Skip to content

Commit

Permalink
quote the columns for exclusion to preserve case sensitivity (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Nov 28, 2023
1 parent a4c028c commit 2752413
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow/workflows/snapshot_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ func (s *SnapshotFlowExecution) cloneTable(
if len(mapping.Exclude) != 0 {
for _, v := range s.config.TableNameSchemaMapping {
if v.TableIdentifier == srcName {
from = strings.Join(maps.Keys(v.Columns), ",")
cols := maps.Keys(v.Columns)
for i, col := range cols {
cols[i] = fmt.Sprintf(`"%s"`, col)
}
from = strings.Join(cols, ",")
break
}
}
Expand Down

0 comments on commit 2752413

Please sign in to comment.