Skip to content

Conversation

@tianchen92
Copy link
Contributor

Related to ARROW-7021.

UnionFixedSizeListWriter should check writer index for decimal type (just as other types) to ensure the values written not exceed listSize.

Otherwise, the writer may continue to write data into it’s underlying vector quietly even the the writer.idx() > listSize * index.

@github-actions
Copy link

}
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

it doesn't look like there is a check to ensure writing succeeds? could you also add one here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, fixed.

pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
… writer index

Related to [ARROW-7021](https://issues.apache.org/jira/browse/ARROW-7021).

UnionFixedSizeListWriter should check writer index for decimal type (just as other types) to ensure the values written not exceed listSize.

Otherwise, the writer may continue to write data into it’s underlying vector quietly even the the writer.idx() > listSize * index.

Closes apache#5802 from tianchen92/ARROW-7021 and squashes the following commits:

1268aec <tianchen> add write decimal tests
a17dded <tianchen> resolve comments
5b66dcb <tianchen> fix test
8f2df78 <tianchen> ARROW-XXXX:  UnionFixedSizeListWriter decimal type should check writer index

Authored-by: tianchen <[email protected]>
Signed-off-by: Micah Kornfield <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants