From e7e946965743a0041e5c09bb60f150d2981a9003 Mon Sep 17 00:00:00 2001 From: Artyom Keydunov Date: Fri, 15 Nov 2019 12:38:36 -0800 Subject: [PATCH] examples: real-time dashboard clean up schema --- examples/real-time-dashboard/schema/Events.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/real-time-dashboard/schema/Events.js b/examples/real-time-dashboard/schema/Events.js index 6bfca2619d77..3c987fa5749d 100644 --- a/examples/real-time-dashboard/schema/Events.js +++ b/examples/real-time-dashboard/schema/Events.js @@ -39,11 +39,6 @@ cube(`Events`, { type: `number` }, - quaterMinutes: { - sql: 'CONCAT(CAST(MINUTE(timestamp) as CHAR), ":", CAST((FLOOR(SECOND(timestamp)/15) + 1)*15 as CHAR))', - type: `string` - }, - minutesAgoHumanized: { type: `string`, case: { @@ -116,11 +111,9 @@ cube(`EventsBucketed`, { ` ${derivedTables(FILTER_PARAMS.EventsBucketed.time.filter(filterSuffix))} select * from unioned - WHERE ${FILTER_PARAMS.EventsBucketed.time.filter('timestamp')} `, refreshKey: { - //sql: `select (FLOOR(SECOND(max(a.timestamp))/15))*15 from ${CUBE.sql()} as a ` sql: `select (FLOOR(UNIX_TIMESTAMP(now())/15))*15` },