Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into sammy/native-iter-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Sep 14, 2023
2 parents c9ca714 + d93dbf7 commit 8f58e37
Show file tree
Hide file tree
Showing 22 changed files with 734 additions and 93 deletions.
6 changes: 0 additions & 6 deletions daft/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import os
from typing import TYPE_CHECKING

from daft.logging import setup_logger

Expand Down Expand Up @@ -46,11 +45,6 @@ def get_build_type() -> str:

__version__ = get_version()

if TYPE_CHECKING:
# Placeholder for type checking for Rust module
class daft:
pass


###
# Initialize analytics
Expand Down
5 changes: 4 additions & 1 deletion daft/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def logical_plan_builder_class(self) -> type[LogicalPlanBuilder]:
from daft.logical.logical_plan import PyLogicalPlanBuilder
from daft.logical.rust_logical_plan import RustLogicalPlanBuilder

return RustLogicalPlanBuilder if self.use_rust_planner else PyLogicalPlanBuilder
if self.use_rust_planner:
return RustLogicalPlanBuilder
else:
return PyLogicalPlanBuilder


_DaftContext = DaftContext()
Expand Down
Loading

0 comments on commit 8f58e37

Please sign in to comment.