Skip to content

Conversation

@SkyFan2002
Copy link
Member

@SkyFan2002 SkyFan2002 commented Nov 25, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

  1. Add RelOperator::CopyIntoTable and construct the physical plan using PhysicalPlanBuilder.
  2. Simplify CopyIntoTablePlan by removing unused fields, separating fields for commit and purge and extracting the source plan.
  3. Eliminate InsertInterpreter and insert-related plans; implement insert statement by reusing CopyIntoTable logic.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - just refactor, existing test enough

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Nov 25, 2024
# Conflicts:
#	src/query/service/src/interpreters/interpreter_copy_into_table.rs
#	src/query/service/src/interpreters/interpreter_replace.rs
#	src/query/service/src/pipelines/builders/builder_copy_into_table.rs
#	src/query/sql/src/executor/physical_plans/physical_copy_into_table.rs
#	src/query/sql/src/planner/binder/copy_into_table.rs
#	src/query/sql/src/planner/plans/copy_into_table.rs
#	src/query/sql/src/planner/plans/insert.rs
# Conflicts:
#	src/query/service/src/interpreters/interpreter_insert.rs
#	src/query/storages/fuse/src/operations/common/processors/sink_commit.rs
# Conflicts:
#	src/query/sql/src/planner/binder/copy_into_table.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-refactor this PR changes the code base without new features or bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant