Skip to content

Commit

Permalink
FEATURE/#269
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Jul 9, 2022
1 parent de39e50 commit 03d16e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opteryx/engine/planner/operations/dataset_reader_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

from opteryx.engine import QueryDirectives, QueryStatistics
from opteryx.engine.planner.operations import BasePlanNode
from opteryx.engine.planner.planner import QueryPlanner
from opteryx.exceptions import DatabaseError
from opteryx.storage import file_decoders
from opteryx.storage.adapters import DiskStorage
Expand Down Expand Up @@ -130,6 +129,8 @@ def __init__(
self._dataset = config.get("dataset", None)
self._alias = config.get("alias", None)

# circular imports
from opteryx.engine.planner.planner import QueryPlanner
if isinstance(self._dataset, (list, QueryPlanner, dict)):
return

Expand Down Expand Up @@ -177,7 +178,8 @@ def name(self): # pragma: no cover

def execute(self) -> Iterable:

# query plans
# circular imports
from opteryx.engine.planner.planner import QueryPlanner
if isinstance(self._dataset, QueryPlanner):
metadata = None

Expand Down

0 comments on commit 03d16e2

Please sign in to comment.