Skip to content

Test cases for [CALCITE-6299] Support JOIN in Arrow adapter#4908

Open
xuzifu666 wants to merge 1 commit intoapache:mainfrom
xuzifu666:calcite-6299
Open

Test cases for [CALCITE-6299] Support JOIN in Arrow adapter#4908
xuzifu666 wants to merge 1 commit intoapache:mainfrom
xuzifu666:calcite-6299

Conversation

@xuzifu666
Copy link
Copy Markdown
Member

jira: https://issues.apache.org/jira/browse/CALCITE-6299

Since ArrowTable already holds ArrowFileReader and has undergone some recent Arrow Adapter changes, the Arrow Adapter now supports JOIN. This PR supplements and enhances the relevant tests.

.with(arrow)
.query(sql)
.limit(1)
.limit(6)
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.

why do you need a limit?

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.

The output was long, so I used a limit, but limit shouldn't be needed here. I removed limit in test case accordingly.

@xuzifu666 xuzifu666 requested a review from mihaibudiu April 25, 2026 00:35
+ " ArrowToEnumerableConverter\n"
+ " ArrowProject(intField=[$0])\n"
+ " ArrowTableScan(table=[[ARROW, ARROWDATA]], fields=[[0, 1, 2, 3]])\n\n";
String result = "intField=0; intField=0\n"
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.

This is very regular, could be generated by a loop

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.

Yes, had changed in a loop.

@sonarqubecloud
Copy link
Copy Markdown

@xuzifu666 xuzifu666 added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Apr 25, 2026
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