Skip to content

Commit

Permalink
Call compute for each kube if necessery
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Walczak committed Jan 19, 2024
1 parent f1771da commit 1836d60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/intake_geokube/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ def _process_geokube_dataset(
)
if not query:
self.log.info("query is empty!")
return dataset.compute() if compute else dataset
if compute:
return dataset.apply(
lambda dc: dc.compute() if isinstance(dc, Delayed) else dc
)
return dataset
if isinstance(dataset, Dataset):
self.log.info("filtering with: %s", query.filters)
dataset = dataset.filter(**query.filters)
Expand Down

0 comments on commit 1836d60

Please sign in to comment.