Skip to content

Commit

Permalink
fix applyColumnCasingToDf ds.CurrentBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Oct 24, 2024
1 parent 3cf0bf2 commit d7d1149
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/sling/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ func applyColumnCasingToDf(df *iop.Dataflow, connType dbio.Type, casing *iop.Col
ds.Columns[i].Name = casing.Apply(col.Name, connType)
}

for i, col := range ds.CurrentBatch.Columns {
ds.CurrentBatch.Columns[i].Name = casing.Apply(col.Name, connType)
if ds.CurrentBatch != nil {
for i, col := range ds.CurrentBatch.Columns {
ds.CurrentBatch.Columns[i].Name = casing.Apply(col.Name, connType)
}
}
}
}
Expand Down

0 comments on commit d7d1149

Please sign in to comment.