Skip to content

Commit 9a00cf9

Browse files
adds return if entities in chunk = 0
1 parent 56bdd78 commit 9a00cf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

digital_land/package/dataset_parquet.py

+5
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ def load_entities_range(
218218

219219
# distinct_fields - list of fields in the field in fact
220220
rows = self.conn.execute(query).fetchall()
221+
print(rows)
222+
# if there are no entities in the entity range then we don't need to proceed
223+
if len(rows) == 0:
224+
return
225+
221226
distinct_fields = [row[0] for row in rows]
222227

223228
# json fields - list of fields which are present in the fact table which

0 commit comments

Comments
 (0)