Skip to content

Commit

Permalink
examples: real-time dashboard clean up schema
Browse files Browse the repository at this point in the history
  • Loading branch information
keydunov committed Nov 15, 2019
1 parent 90a60a6 commit e7e9469
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions examples/real-time-dashboard/schema/Events.js
Expand Up @@ -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: {
Expand Down Expand Up @@ -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`
},

Expand Down

0 comments on commit e7e9469

Please sign in to comment.