jizezhang commented on code in PR #18688:
URL: https://github.com/apache/datafusion/pull/18688#discussion_r2529689618
##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1884,6 +1890,15 @@ pub enum RegisterFunction {
Table(String, Arc<dyn TableFunctionImpl>),
}
+/// Interface for applying a custom caching strategy.
+/// Implement this trait and register via [`SessionState`]
+/// to create a custom logical node for caching.
+pub trait CacheProducer: Debug + Sync + Send {
+ /// Create a custom logical node for caching
+ /// given a logical plan (of DF to cache).
+ fn create(&self, plan: LogicalPlan) -> Result<Arc<dyn
UserDefinedLogicalNode>>;
Review Comment:
Yes, updated the method signature to include session state.
--
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]