Skip to content

Commit

Permalink
init index_elapsed in case auto indexing is off
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad authored Jan 11, 2024
1 parent fcd02a6 commit cee3b0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datapusher/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,7 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None):
# if a column's cardinality <= AUTO_INDEX_THRESHOLD, create an index for that column
auto_index_dates = config.get("AUTO_INDEX_DATES")
auto_unique_index = config.get("AUTO_UNIQUE_INDEX")
index_elapsed = 0.0
if (
auto_index_threshold
or (auto_index_dates and datetimecols_list)
Expand Down

0 comments on commit cee3b0e

Please sign in to comment.