Skip to content

[Bug]: S3writer_delegate.go will trash bitmask #23385

Closed

Description

@fengttt

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

d3aae29

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

if selectColsCheckNullColIdx > -1 && tmpBat.Vecs[selectColsCheckNullColIdx].HasNull() {
		sortKeyNulls := tmpBat.Vecs[selectColsCheckNullColIdx].GetNulls().GetBitmap().Clone()
		tmpBat.ShrinkByMask(sortKeyNulls, true, 0)
	}

Orig code missed the Clone. In tmpBat, actually it will overwrite the bitmap, causing later bugs.

Expected Behavior

No response

Steps to Reproduce

Code inspection, etc.

Additional information

No response

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions