askalt opened a new pull request, #12113:
URL: https://github.com/apache/datafusion/pull/12113

   This patch adds the ability to return a `LogicalPlan` by value from a 
`TableProvider`. 
   
   ## Rationale for this change
   Let's assume that we have `TableProvider` that supports concurrent 
modifications of the inner logical plan (for example, mutable VIEW), and it 
cannot afford to provide a reference. 
   It is implied that code requiring only a clone (such as `inline_table_scan`) 
will use the newly added method.
   
   <!--
    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.  
   -->
   
   ## What changes are included in this PR?
    A corresponding method was added to extend the API, along with its default 
implementation. `inline_table_scan` implementation was updated with new method.
   
   <!--
   There is no need to duplicate the description in the issue here but it is 
sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   <!--
   ## Are these changes tested?
   
   <!--
   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?
   One can return `LogicalPlan` by value from `TableProvider`, if cannot return 
a reference for some reason.
   
   <!--
   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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to