Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgapp committed Jan 15, 2024
1 parent be991c9 commit a3b6463
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/core/src/datasource/cte_worktable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ pub struct CteWorkTable {

impl CteWorkTable {
/// construct a new CteWorkTable with the given name and schema
/// This schema must match the schema of the recursive term of the query
/// Since the scan method will contain an physical plan that assumes this schema
pub fn new(name: &str, table_schema: SchemaRef) -> Self {
Self {
name: name.to_owned(),
Expand Down
3 changes: 3 additions & 0 deletions datafusion/core/src/execution/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,9 @@ impl<'a> ContextProvider for SessionContextProvider<'a> {
Ok(provider_as_source(provider))
}

/// Create a new CTE work table for a recursive CTE logical plan
/// This table will be used in conjunction with a Worktable physical plan
/// to read and write each iteration of a recursive CTE
fn create_cte_work_table(
&self,
name: &str,
Expand Down

0 comments on commit a3b6463

Please sign in to comment.