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

feat: support INSERT INTO SELECT #1536

Merged
merged 11 commits into from
Jul 15, 2024
Merged

Conversation

dracoooooo
Copy link
Contributor

@dracoooooo dracoooooo commented May 29, 2024

Rationale

Close #557.

Detailed Changes

When generating the insert logical plan, alse generate the select logical plan and store it in the insert plan. Then execute the select logical plan in the insert interpreter, convert the result records into RowGroup and then insert it.

Test Plan

CI

@github-actions github-actions bot added the feature New feature or request label May 29, 2024
@jiacai2050
Copy link
Contributor

@dracoooooo Hi, it seems there are some CI errors, would you mind take a look?

@dracoooooo
Copy link
Contributor Author

dracoooooo commented Jun 2, 2024

@dracoooooo Hi, it seems there are some CI errors, would you mind take a look?

Due to #1538, the newly added integration test seems unable to consistently pass in the cluster environment.

@jiacai2050 jiacai2050 self-requested a review July 1, 2024 09:53
Copy link
Contributor

Choose a reason for hiding this comment

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

As said in #1538 (comment), sql with multiple tables may fails, so currently we can only enable this features in standalone mode.

In cluster mode, we can do a check to ensure tables belonging to same instance.

For now, you can move this test under local dir, something like integration_tests/cases/env/local/dml/insert_into_select.sql

Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit fa5c286 into apache:main Jul 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support INSERT INTO SELECT
2 participants