Skip to content

[CALCITE-4597] Allow RelNodes to have an empty row type (zero fields) - #5274

Open
xuzifu666 wants to merge 4 commits into
apache:mainfrom
xuzifu666:calcite-4597
Open

xuzifu666 wants to merge 4 commits into
apache:mainfrom
xuzifu666:calcite-4597

Conversation

@xuzifu666

Copy link
Copy Markdown
Member


/** Adds a relational expression to the stack, checking the
* {@link Config#emptyRowTypePolicy()}. */
private void stackPush(RelNode rel,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changing every stack.push call site to stackPush seems fragile. Instead, could you change final Deque<Frame> stack to final Queue<Frame> stack, and assign to it an anonymous subclass of AbstractQueue<Frame> that checks for field-less RelNodes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, @julianhyde done in the latest commit.

@sonarqubecloud

Copy link
Copy Markdown

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