We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56bdd78 commit ad7d52aCopy full SHA for ad7d52a
1 file changed
digital_land/package/dataset_parquet.py
@@ -218,6 +218,13 @@ def load_entities_range(
218
219
# distinct_fields - list of fields in the field in fact
220
rows = self.conn.execute(query).fetchall()
221
+ # if there are no entities in the entity range then we don't need to proceed
222
+ if len(rows) == 0:
223
+ logger.info(
224
+ f"skipping entity numbers {entity_range[0]} to {entity_range[1]} as there are no entities"
225
+ )
226
+ return
227
+
228
distinct_fields = [row[0] for row in rows]
229
230
# json fields - list of fields which are present in the fact table which
0 commit comments