Skip to content

[CALCITE-7269] SqlValidator throws exception if lambda parameter is struct - #5190

Merged
mihaibudiu merged 1 commit into
apache:mainfrom
mihaibudiu:issue7269
Aug 28, 2026
Merged

[CALCITE-7269] SqlValidator throws exception if lambda parameter is struct#5190
mihaibudiu merged 1 commit into
apache:mainfrom
mihaibudiu:issue7269

Conversation

@mihaibudiu

@mihaibudiu mihaibudiu commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7269

Changes Proposed

There are several small issues in various parts of the stack.

I have also cleaned-up a bit the RelStructuredTypeFlattener, whose JavaDoc mentioned a bunch of plan objects which no longer exists. (We are running our compiler without the type flattener, I suspect it could actually be deprecated; it may not work correctly with arbitrary lambdas that manipulate ROW types; I added some warnings in the JavaDoc).

…truct

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@sonarqubecloud

Copy link
Copy Markdown

@zzwqqq

zzwqqq commented Aug 27, 2026

Copy link
Copy Markdown
Member

Maybe the Jira link in the PR description is a typo? It looks like it should point to CALCITE-7269 rather than CALCITE-7629.

@mihaibudiu

Copy link
Copy Markdown
Contributor Author

Thanks, I fixed the link.

.build();
restructured = RelOptUtil.copyRelHints(flattened, restructured);
// REVIEW jvs 23-Mar-2005: How do we make sure that this
// implementation stays in Java? Fennel can't handle

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.

What is Fennel ? Does it still exist ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fennel has been gone for more than a decade as far as I know

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't recall how this comment got here, I will just remove it.

@dssysolyatin dssysolyatin left a comment

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.

Thanks @mihaibudiu! Looks good to me

@mihaibudiu

Copy link
Copy Markdown
Contributor Author

Since @dssysolyatin approved and only a small change is necessary, I will amend the commit instead of pushing a new one

@mihaibudiu mihaibudiu added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Aug 28, 2026
@mihaibudiu
mihaibudiu merged commit c1fe98a into apache:main Aug 28, 2026
35 checks passed
@mihaibudiu
mihaibudiu deleted the issue7269 branch August 28, 2026 18:47
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.

3 participants