Skip to content

Conversation

WangGuangxin
Copy link
Contributor

What changes were proposed in this pull request?

Currently, ColumnarRow's get call didn't check isNullAt, but UnsafeRow.get does.

if (handleNull && (obj.isNullAt(ordinal) || physicalDataType instanceof PhysicalNullType)) {

And in some cases it's assumed that the InternalRow.get is null safe, for example

soi.setStructFieldData(struct, field, wrapper(row.get(i, schema(i).dataType)))

We hit it when we extend spark to make it working on columnar data.

Why are the changes needed?

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually

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

No

@github-actions github-actions bot added the SQL label Aug 29, 2025
@WangGuangxin
Copy link
Contributor Author

@cloud-fan Can you please review this ?

@cloud-fan
Copy link
Contributor

LGTM, can we add a test in ColumnVectorSuite?

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.

2 participants