summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/cycle_analytics/base_stage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/base_stage.rb b/lib/gitlab/cycle_analytics/base_stage.rb
index afec16d1818..9143792e044 100644
--- a/lib/gitlab/cycle_analytics/base_stage.rb
+++ b/lib/gitlab/cycle_analytics/base_stage.rb
@@ -35,7 +35,7 @@ module Gitlab
# cycle analytics stage.
interval_query = Arel::Nodes::As.new(
cte_table,
- subtract_datetimes(base_query, @start_time_attrs, @end_time_attrs, name.to_s))
+ subtract_datetimes(base_query.dup, @start_time_attrs, @end_time_attrs, name.to_s))
median_datetime(cte_table, interval_query, name)
end