Skip to content

Commit e7e9469

Browse files
committed
examples: real-time dashboard clean up schema
1 parent 90a60a6 commit e7e9469

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: examples/real-time-dashboard/schema/Events.js

-7
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ cube(`Events`, {
3939
type: `number`
4040
},
4141

42-
quaterMinutes: {
43-
sql: 'CONCAT(CAST(MINUTE(timestamp) as CHAR), ":", CAST((FLOOR(SECOND(timestamp)/15) + 1)*15 as CHAR))',
44-
type: `string`
45-
},
46-
4742
minutesAgoHumanized: {
4843
type: `string`,
4944
case: {
@@ -116,11 +111,9 @@ cube(`EventsBucketed`, {
116111
`
117112
${derivedTables(FILTER_PARAMS.EventsBucketed.time.filter(filterSuffix))}
118113
select * from unioned
119-
WHERE ${FILTER_PARAMS.EventsBucketed.time.filter('timestamp')}
120114
`,
121115

122116
refreshKey: {
123-
//sql: `select (FLOOR(SECOND(max(a.timestamp))/15))*15 from ${CUBE.sql()} as a `
124117
sql: `select (FLOOR(UNIX_TIMESTAMP(now())/15))*15`
125118
},
126119

0 commit comments

Comments
 (0)