Skip to content

Conversation

@xiedeyantu
Copy link
Member

@xiedeyantu xiedeyantu commented Jan 5, 2026

See CALCITE-4765

Only add tests.

@xiedeyantu
Copy link
Member Author

@NobiGo If you have time, could you please check if it's working correctly now? Since I couldn't find an emps table containing commission in quidem test, I've temporarily replaced it with emp from scott.

Copy link
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

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

The CI is unhappy for some reason too

@xiedeyantu
Copy link
Member Author

The CI is unhappy for some reason too

Fixed, thanks!

@xiedeyantu
Copy link
Member Author

This is the result compared with PGSQL.

@xiedeyantu
Copy link
Member Author

I tried constructing emps and resubmitting the test.

@mihaibudiu
Copy link
Contributor

This is the result compared with PGSQL.

Is this the right link?

@xiedeyantu
Copy link
Member Author

This is the result compared with PGSQL.

Is this the right link?

Sorry, I have updated the original SQL to the SQL in the current PR.

@xiedeyantu
Copy link
Member Author

@NobiGo @mihaibudiu I have file a new jira CALCITE-7356 to describe it.

@xiedeyantu
Copy link
Member Author

Since #4752 has been merged, this issue no longer exists, and I have updated the test.

Copy link
Contributor

@silundong silundong left a comment

Choose a reason for hiding this comment

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

LGTM. It seems the CI error is not related to the changes.

@xiedeyantu xiedeyantu added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Jan 20, 2026
Copy link
Contributor

@NobiGo NobiGo left a comment

Choose a reason for hiding this comment

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

I hope we can add a test case in SqlToRelTest. It's not necessary to have completely identical metadata; using existing table names is fine, and this test case can clearly show how $cor0 is defined.

@xiedeyantu
Copy link
Member Author

I hope we can add a test case in SqlToRelTest. It's not necessary to have completely identical metadata; using existing table names is fine, and this test case can clearly show how $cor0 is defined.

If you find the name confusing, can I change emps to emps_tmp?

@NobiGo
Copy link
Contributor

NobiGo commented Jan 22, 2026

I hope we can add a test case in SqlToRelTest. It's not necessary to have completely identical metadata; using existing table names is fine, and this test case can clearly show how $cor0 is defined.

If you find the name confusing, can I change emps to emps_tmp?

I suggest adding test cases to SqlToRelTest. You can directly use the metadata from SqlToRelTest instead of simulating the same table and column names.The current test cases in .iq are fine for me.

@xiedeyantu
Copy link
Member Author

I hope we can add a test case in SqlToRelTest. It's not necessary to have completely identical metadata; using existing table names is fine, and this test case can clearly show how $cor0 is defined.

If you find the name confusing, can I change emps to emps_tmp?

I suggest adding test cases to SqlToRelTest. You can directly use the metadata from SqlToRelTest instead of simulating the same table and column names.The current test cases in .iq are fine for me.

I have added test cases and change the table name in blank.iq; please check if they meet your requirements.

@sonarqubecloud
Copy link

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.

4 participants