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(frontend): TableScan instead of scan_to_stream for COPY TO #2244

Merged

Conversation

zhongzc
Copy link
Contributor

@zhongzc zhongzc commented Aug 24, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Similar to #2241, replace the invocation of scan_to_stream with constructing a TableScan LogicalPlan, and then execute it using the query engine.

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)

#2065

@zhongzc zhongzc force-pushed the zhongzc/refactor-copy-table-to-scan branch from 3c1d085 to 00fd0a8 Compare August 24, 2023 09:07
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #2244 (00fd0a8) into develop (0a6ab2a) will decrease coverage by 0.54%.
The diff coverage is 2.00%.

@@             Coverage Diff             @@
##           develop    #2244      +/-   ##
===========================================
- Coverage    85.16%   84.62%   -0.54%     
===========================================
  Files          706      706              
  Lines       115554   115575      +21     
===========================================
- Hits         98412    97806     -606     
- Misses       17142    17769     +627     

@zhongzc zhongzc requested review from waynexia and fengjiachun and removed request for waynexia August 24, 2023 09:25
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 👍

Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@waynexia waynexia added this pull request to the merge queue Aug 24, 2023
Merged via the queue into GreptimeTeam:develop with commit 9ce73e7 Aug 24, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…O` (GreptimeTeam#2244)

* refactor(frontend): TableScan instead of `scan_to_stream` for `COPY TO`

Signed-off-by: Zhenchi <[email protected]>

* fix: format

Signed-off-by: Zhenchi <[email protected]>

---------

Signed-off-by: Zhenchi <[email protected]>
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.

4 participants