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

refactor: execute insert with select in query engine #1181

Merged

Conversation

MichaelScofield
Copy link
Collaborator

@MichaelScofield MichaelScofield commented Mar 15, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Insert with select is now executed in query engine. Also insert with select is made possible in distributed mode.

However, plain insert (insert with values) is still executed in the form of statement, directly.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

#1010

close #760

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Merging #1181 (e1efc8a) into develop (501faad) will decrease coverage by 0.33%.
The diff coverage is 76.75%.

@@             Coverage Diff             @@
##           develop    #1181      +/-   ##
===========================================
- Coverage    85.21%   84.88%   -0.33%     
===========================================
  Files          495      495              
  Lines        72592    72344     -248     
===========================================
- Hits         61859    61412     -447     
- Misses       10733    10932     +199     

Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

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

LGTM

src/datanode/src/instance/grpc.rs Outdated Show resolved Hide resolved
src/datanode/src/instance/sql.rs Outdated Show resolved Hide resolved
src/query/src/datafusion.rs Outdated Show resolved Hide resolved
src/datanode/src/tests/instance_test.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 merged commit b77b561 into GreptimeTeam:develop Mar 23, 2023
@MichaelScofield MichaelScofield deleted the refactor/insert-by-plan branch March 23, 2023 02:38
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* refactor: execute insert with select in query engine

* fix: resolve PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supports INSERT INTO SELECT statement
3 participants