Skip to content

Conversation

@manuzhang
Copy link
Member

What changes were proposed in this pull request?

Check whether the parameter DataType is null in ColumnVector constructor before transforming it

Why are the changes needed?

A subclass of ColumnVector, e.g. Iceberg's ConstantColumnVector, could be created with null DataType. It throws NPE after #51349, which can be verified by failed tests in integrating Spark 4.1.0-preview1 in Iceberg

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT.

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @manuzhang . Could you rebase to the master branch once more? Previously, master branch compilation was broken accidentally and now it's recovered.

@manuzhang
Copy link
Member Author

@dongjoon-hyun Rebased. Please help review.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @manuzhang and @yaooqinn .
Merged to master.

@dongjoon-hyun
Copy link
Member

Due to the conflicts, this PR landed to master branch only for Apache Spark 4.1.0-preview2 which will start a vote next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants