mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
fix: add check for WriteRecordBatch (#47137)
fix for https://github.com/milvus-io/milvus/issues/47073 --------- Signed-off-by: Xinyi Jiang <xinyi.jiang@reddit.com> Co-authored-by: Xinyi Jiang <xinyi.jiang@reddit.com>
This commit is contained in:
parent
e092884822
commit
610bc045da
@ -128,6 +128,10 @@ func NewPackedWriter(filePaths []string, schema *arrow.Schema, bufferSize int64,
|
||||
}
|
||||
|
||||
func (pw *PackedWriter) WriteRecordBatch(recordBatch arrow.Record) error {
|
||||
if recordBatch == nil || recordBatch.NumCols() == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
cArrays := make([]CArrowArray, recordBatch.NumCols())
|
||||
cSchemas := make([]CArrowSchema, recordBatch.NumCols())
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user