Skip to content

Commit

Permalink
refactor: used create_plan across codebase, closes #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushacharya committed Feb 25, 2024
1 parent e5a9190 commit 3ddd92c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 75 deletions.
5 changes: 1 addition & 4 deletions evadb/optimizer/rules/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
from evadb.optimizer.rules.rules_base import Promise, Rule, RuleType
from evadb.parser.types import JoinType, ParserOrderBySortType
from evadb.plan_nodes.apply_and_merge_plan import ApplyAndMergePlan
from evadb.plan_nodes.create_from_select_plan import CreateFromSelectPlan
from evadb.plan_nodes.exchange_plan import ExchangePlan
from evadb.plan_nodes.explain_plan import ExplainPlan
from evadb.plan_nodes.hash_join_build_plan import HashJoinBuildPlan
Expand Down Expand Up @@ -735,9 +734,7 @@ def check(self, before: Operator, context: OptimizerContext):
return True

def apply(self, before: LogicalCreate, context: OptimizerContext):
after = CreateFromSelectPlan(
before.video, before.column_list, before.if_not_exists
)
after = CreatePlan(before.video, before.column_list, before.if_not_exists)
for child in before.children:
after.append_child(child)
yield after
Expand Down
71 changes: 0 additions & 71 deletions evadb/plan_nodes/create_from_select_plan.py

This file was deleted.

0 comments on commit 3ddd92c

Please sign in to comment.