Skip to content

Commit 03b63bf

Browse files
authored
fix: use NewInsertDataWithFunctionOutputField when importing binlog file (#40741)
issue: #40740 Signed-off-by: Buqian Zheng <[email protected]>
1 parent e5c1242 commit 03b63bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/util/importutilv2/binlog/reader.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (r *reader) readDelete(deltaLogs []string, tsStart, tsEnd uint64) (*storage
138138
}
139139

140140
func (r *reader) Read() (*storage.InsertData, error) {
141-
insertData, err := storage.NewInsertData(r.schema)
141+
insertData, err := storage.NewInsertDataWithFunctionOutputField(r.schema)
142142
if err != nil {
143143
return nil, err
144144
}
@@ -192,7 +192,7 @@ OUTER:
192192
if len(masks) == 0 { // no data will undergo filtration, return directly
193193
return insertData, nil
194194
}
195-
result, err := storage.NewInsertData(r.schema)
195+
result, err := storage.NewInsertDataWithFunctionOutputField(r.schema)
196196
if err != nil {
197197
return nil, err
198198
}

0 commit comments

Comments
 (0)