Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add WithCTEInChildren
  • Loading branch information
MaxGekk committed Jul 16, 2023
commit 4eabbd8c9e15098fa7f40c8940e2bebf6781f4ed
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,15 @@ case class WithWindowDefinition(
copy(child = newChild)
}

/**
* The logical node is able to insert the given `WithCTE` into its children.
*/
trait WithCTEInChildren extends LogicalPlan {
def withCTE(withCTE: WithCTE): LogicalPlan = {
withNewChildren(children.map(withCTE.withNewPlan))
}
}

/**
* @param order The ordering expressions
* @param global True means global sorting apply for entire data set,
Expand Down