From 8cdd077caeae16b5d7442c11b1f93e09b2076c98 Mon Sep 17 00:00:00 2001 From: "alejandro@tinybird.co" Date: Mon, 1 Apr 2024 13:04:11 +0200 Subject: [PATCH 1/2] NEw endpkint --- .../pipes/kpis.pipe | 20 ++++++++++--------- .../pipes/untitled_pipe_5011.pipe | 5 +++++ 2 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 change_column_type_landing_and_recover_quarantine_data/pipes/untitled_pipe_5011.pipe diff --git a/change_column_type_landing_and_recover_quarantine_data/pipes/kpis.pipe b/change_column_type_landing_and_recover_quarantine_data/pipes/kpis.pipe index fa85568d..246c7781 100644 --- a/change_column_type_landing_and_recover_quarantine_data/pipes/kpis.pipe +++ b/change_column_type_landing_and_recover_quarantine_data/pipes/kpis.pipe @@ -39,27 +39,29 @@ SQL > ) }} ) - ) as end - {% else %} toStartOfDay(today()) as end - {% end %} + ) as + end {% else %} toStartOfDay(today()) as + end {% end %} {% if _single_day %} select arrayJoin( arrayMap( x -> toDateTime(x), - range( - toUInt32(toDateTime(start)), toUInt32(timestampAdd(end, interval 1 day)), 3600 - ) + range(toUInt32(toDateTime(start)), toUInt32(timestampAdd(end, interval 1 day)), + 3600 ) - ) as date + ) + ) as date {% else %} select arrayJoin( arrayMap( x -> toDate(x), - range(toUInt32(start), toUInt32(timestampAdd(end, interval 1 day)), 24 * 3600) + range(toUInt32(start), toUInt32(timestampAdd(end, interval 1 day)), + 24 * 3600 ) - ) as date + ) + ) as date {% end %} where date <= now() diff --git a/change_column_type_landing_and_recover_quarantine_data/pipes/untitled_pipe_5011.pipe b/change_column_type_landing_and_recover_quarantine_data/pipes/untitled_pipe_5011.pipe new file mode 100644 index 00000000..9ce95762 --- /dev/null +++ b/change_column_type_landing_and_recover_quarantine_data/pipes/untitled_pipe_5011.pipe @@ -0,0 +1,5 @@ +TOKEN "untitled_pipe_5011_endpoint_read_1955" READ + +NODE untitled_pipe_5011_0 +SQL > + SELECT action, count() FROM analytics_events GROUP BY action From 6ab50f0971c2b352d5d767d33087bfb120e71da1 Mon Sep 17 00:00:00 2001 From: "alejandro@tinybird.co" Date: Mon, 1 Apr 2024 13:04:32 +0200 Subject: [PATCH 2/2] Update .tinyenv to 2.0.1 --- .../.tinyenv | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/change_column_type_landing_and_recover_quarantine_data/.tinyenv b/change_column_type_landing_and_recover_quarantine_data/.tinyenv index c7218874..01e6bb4d 100644 --- a/change_column_type_landing_and_recover_quarantine_data/.tinyenv +++ b/change_column_type_landing_and_recover_quarantine_data/.tinyenv @@ -3,7 +3,8 @@ # bump post to deploy to the current live Release, rollback to previous post version is not available # bump patch or minor to deploy a new Release and auto-promote it to live. Add TB_AUTO_PROMOTE=0 to create the Release in preview status # bump major to deploy a new Release in preview status -VERSION=2.0.0 +VERSION=2.0.1 + @@ -12,6 +13,13 @@ VERSION=2.0.0 # Deploy a new Release in preview status (default is 1) # TB_AUTO_PROMOTE=0 +# Check if deploy requires backfilling on preview (default is 1) +# TB_CHECK_BACKFILL_REQUIRED=0 + +# Force old Releases deletion on promote (default is 0) +# Setting it to 1 will remove oldest rollback Releases even when some resource is still in use +# TB_FORCE_REMOVE_OLDEST_ROLLBACK=0 + # Don't print CLI version warning message if there's a new available version # TB_VERSION_WARNING=0