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

[CALCITE-6604] Add support for SqlWindowTableFunction in RelToSql Con… #3986

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

Conversation

ehds
Copy link

@ehds ehds commented Sep 29, 2024

see https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6604

Add WindowTableFunctionScanContext to convert RexCall(SqlWindowFunction) to SqlNdoe.

  1. First convert SqlWindowFunction to SqlCall without PARAM_DATA.
  2. Finally reconstruct a new SqlCall with PARAM_DATA as the first operand.

…verter

Add WindowTableFunctionScanContext to convert RexCall(SqlWindowFunction) to SqlNdoe.

First convert SqlWindowFunction to SqlCall without PARAM_DATA.
Finally reconstruct a new SqlCall with PARAM_DATA as the first operand.
Copy link

sonarcloud bot commented Sep 29, 2024

@@ -1286,13 +1289,31 @@ public Result visit(Uncollect e) {

public Result visit(TableFunctionScan e) {
final List<SqlNode> inputSqlNodes = new ArrayList<>();
final List<SqlNode> fieldNodes = new ArrayList<>();

final int filedSize = e.getRowType().getFieldCount();
Copy link
Contributor

Choose a reason for hiding this comment

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

fieldCount instead of filedSize?

@mihaibudiu mihaibudiu added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM-will-merge-soon Overall PR looks OK. Only minor things left.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants