alamb opened a new pull request, #8429:
URL: https://github.com/apache/arrow-datafusion/pull/8429

   ## Which issue does this PR close?
   
   Follow on to https://github.com/apache/arrow-datafusion/pull/8411
   
   ## Rationale for this change
   
   Inspired by the commentary on 
https://github.com/apache/arrow-datafusion/pull/8411 from @viirya  and 
@Dandandan  
https://github.com/apache/arrow-datafusion/pull/8411#discussion_r1414334754 I 
took a walk through the code and found quite a few places where we could clean 
up the construction of `ScalarValue::Utf8`
   
   ## What changes are included in this PR?
   
   Use `ScalarValue::from` impl to create `ScalarValue::Utf8` -- this both 
takes less code and may avoid some copies. 
   
   ## Are these changes tested?
   Covered by existing tests
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are 
they covered by existing tests)?
   -->
   
   ## Are there any user-facing changes?
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api 
change` label.
   -->
   


-- 
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]

Reply via email to