Skip to content

Commit

Permalink
lightning: fix parquet import always fail (#49391)
Browse files Browse the repository at this point in the history
close #49368
  • Loading branch information
D3Hunter authored Dec 12, 2023
1 parent 1b199c2 commit 5bd0267
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions br/pkg/lightning/importer/table_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,9 @@ ChunkLoop:

if chunk.FileMeta.Type == mydump.SourceTypeParquet {
// TODO: use the compressed size of the chunk to conduct memory control
_, err = getChunkCompressedSizeForParquet(ctx, chunk, rc.store)
return nil, errors.Trace(err)
if _, err = getChunkCompressedSizeForParquet(ctx, chunk, rc.store); err != nil {
return nil, errors.Trace(err)
}
}

restoreWorker := rc.regionWorkers.Apply()
Expand Down

0 comments on commit 5bd0267

Please sign in to comment.