diff --git a/posthog/api/test/__snapshots__/test_insight_funnels.ambr b/posthog/api/test/__snapshots__/test_insight_funnels.ambr index 628a7f8aba043..553455b48ec41 100644 --- a/posthog/api/test/__snapshots__/test_insight_funnels.ambr +++ b/posthog/api/test/__snapshots__/test_insight_funnels.ambr @@ -122,7 +122,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: ClickhouseTestFunnelTypes.test_funnel_time_to_convert_auto_bins_strict @@ -229,7 +230,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: ClickhouseTestFunnelTypes.test_funnel_time_to_convert_auto_bins_unordered @@ -438,6 +440,7 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- diff --git a/posthog/queries/funnels/funnel_time_to_convert.py b/posthog/queries/funnels/funnel_time_to_convert.py index f7bf8a3165dfa..efa0418e0b833 100644 --- a/posthog/queries/funnels/funnel_time_to_convert.py +++ b/posthog/queries/funnels/funnel_time_to_convert.py @@ -107,6 +107,7 @@ def get_query(self) -> str: ) fill USING (bin_from_seconds) ORDER BY bin_from_seconds + SETTINGS max_ast_elements=1000000, max_expanded_ast_elements=1000000 """ return query diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr index f319e5f96cd95..3dd0679dfe71f 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr @@ -122,7 +122,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: TestFunnelTimeToConvert.test_auto_bin_count_total @@ -248,7 +249,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: TestFunnelTimeToConvert.test_auto_bin_count_total.1 @@ -374,7 +376,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: TestFunnelTimeToConvert.test_basic_strict @@ -481,7 +484,8 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # --- # name: TestFunnelTimeToConvert.test_basic_unordered @@ -690,6 +694,7 @@ (SELECT histogram_from_seconds + number * bin_width_seconds AS bin_from_seconds FROM system.numbers LIMIT ifNull(bin_count, 0) + 1) fill USING (bin_from_seconds) - ORDER BY bin_from_seconds + ORDER BY bin_from_seconds SETTINGS max_ast_elements=1000000, + max_expanded_ast_elements=1000000 ''' # ---