Skip to content

Commit 70ebef4

Browse files
committed
fix: construct ordered column with header separation first
1 parent 60f3b60 commit 70ebef4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mc2mc/internal/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,6 @@ func addPartitionValueColumn(rawQuery []byte) []byte {
110110
}
111111

112112
func constructQueryWithOrderedColumns(query []byte, orderedColumns []string) []byte {
113-
return []byte(loader.ConstructQueryWithOrderedColumns(string(query), orderedColumns))
113+
header, qr := loader.SeparateHeadersAndQuery(string(query))
114+
return []byte(fmt.Sprintf("%s %s", header, loader.ConstructQueryWithOrderedColumns(qr, orderedColumns)))
114115
}

0 commit comments

Comments
 (0)