waynexia opened a new pull request, #12505: URL: https://github.com/apache/arrow-rs/pull/12505
# Which issue does this PR close? (no related issue) # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. Please try to explain the problem you are trying to solve in terms of the user-visible behavior, rather than the implementation. --> I (my agent) found a dense `UnionBuilder` will become sparse builder silently because `std::mem::take` triggers `Default`. # What changes are included in this PR? Add a match arm to preserve builder type on `finish()` # Are these changes tested? Yes # Are there any significant user-facing changes? No # AI usage disclosure <!-- If you used AI tools, briefly describe what they helped generate. See https://github.com/apache/arrow-rs/blob/main/CONTRIBUTING.md#ai-generated-submissions. Delete this section if you did not use AI tools. --> My agent finds this, I've verified the problem and the fix -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
