diff --git a/src/dask_awkward/lib/core.py b/src/dask_awkward/lib/core.py index a7a6458f..fde8f7f0 100644 --- a/src/dask_awkward/lib/core.py +++ b/src/dask_awkward/lib/core.py @@ -704,6 +704,12 @@ def repartition( def __len__(self) -> int: if not self.known_divisions: + warnings.warn( + "The divisions of this collection are unknown.\n" + "An eager computation of the divisions will be performed. " + "This may be expensive.", + UserWarning, + ) self.eager_compute_divisions() return self.divisions[-1] # type: ignore