Skip to content

[GLUTEN-10607][MINOR] Fix: Use setSafe in DateWriter to avoid overflow#10581

Merged
zhouyuan merged 1 commit intoapache:mainfrom
jiangjiangtian:fix_overflow
Sep 3, 2025
Merged

[GLUTEN-10607][MINOR] Fix: Use setSafe in DateWriter to avoid overflow#10581
zhouyuan merged 1 commit intoapache:mainfrom
jiangjiangtian:fix_overflow

Conversation

@jiangjiangtian
Copy link
Contributor

What changes are proposed in this pull request?

If the Date type is nested within an Array, Map, or Struct, invoking writeRow may result in an exception due to DateWriter utilizing the unsafe set interface. The set interface does not reallocate the value buffer in cases of overflow. Consequently, this pull request changes to use the safer setSafe interface.

@github-actions github-actions bot added the VELOX label Aug 29, 2025
@jiangjiangtian jiangjiangtian changed the title Fix: Use setSafe in DateWriter to avoid overflow [MINOR] Fix: Use setSafe in DateWriter to avoid overflow Aug 29, 2025
@xinghuayu007
Copy link
Contributor

could you create an issue to repeat the exception?

@jiangjiangtian
Copy link
Contributor Author

could you create an issue to repeat the exception?

I create an issue here #10607

@jiangjiangtian jiangjiangtian changed the title [MINOR] Fix: Use setSafe in DateWriter to avoid overflow [GLUTEN-10607][MINOR] Fix: Use setSafe in DateWriter to avoid overflow Sep 2, 2025
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

#10607

@zhouyuan zhouyuan merged commit 4542c08 into apache:main Sep 3, 2025
55 checks passed
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