Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(query): Adding supporting function to get the logical plan tree in string form #1894

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sandeep6189
Copy link
Contributor

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

New behavior : Adding new helper function to get the logical plan tree in string format. This can be used for logging and debugging purposes.


def getLogicalPlanTreeStringRepresentation(logicalPlan: LogicalPlan) : String = {
// iterate over all the children of the logical plan and get the string representation
val children = logicalPlan match {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice dfs algorithm.
I guess
planTreeStringRepresentationOfChildren
is a more clear name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants