Skip to content

Commit

Permalink
chore: add warning for native runner (#3613)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
  • Loading branch information
jaychia and Jay Chia authored Dec 19, 2024
1 parent 5e40837 commit 063de4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daft/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ def get_or_create_runner(self) -> Runner:
elif runner_config.name == "native":
from daft.runners.native_runner import NativeRunner

warnings.warn(
"Daft is configured to use the new NativeRunner by default as of v0.4.0. "
"If you are encountering any regressions, please switch back to the legacy PyRunner via `daft.context.set_runner_py()` or by setting the env variable `DAFT_RUNNER=py`. "
"We appreciate you filing issues and helping make the NativeRunner better: https://github.com/Eventual-Inc/Daft/issues",
)

assert isinstance(runner_config, _NativeRunnerConfig)
self._runner = NativeRunner()

Expand Down

0 comments on commit 063de4d

Please sign in to comment.