alamb commented on code in PR #9916:
URL: https://github.com/apache/arrow-datafusion/pull/9916#discussion_r1548616761


##########
datafusion/sql/src/planner.rs:
##########
@@ -530,18 +530,18 @@ pub(crate) fn idents_to_table_reference(
     match taker.0.len() {
         1 => {
             let table = taker.take(enable_normalization);
-            Ok(OwnedTableReference::bare(&table))
+            Ok(OwnedTableReference::bare(table))

Review Comment:
   somehow it seems the compiler can avoid copying / allocating by getting this 
as an owned item



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