Skip to content

Commit 063de4d

Browse files
jaychiaJay Chia
andauthored
chore: add warning for native runner (#3613)
Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
1 parent 5e40837 commit 063de4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

daft/context.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ def get_or_create_runner(self) -> Runner:
165165
elif runner_config.name == "native":
166166
from daft.runners.native_runner import NativeRunner
167167

168+
warnings.warn(
169+
"Daft is configured to use the new NativeRunner by default as of v0.4.0. "
170+
"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`. "
171+
"We appreciate you filing issues and helping make the NativeRunner better: https://github.com/Eventual-Inc/Daft/issues",
172+
)
173+
168174
assert isinstance(runner_config, _NativeRunnerConfig)
169175
self._runner = NativeRunner()
170176

0 commit comments

Comments
 (0)