I found this url about this topic:
- https://cube.dev/docs/types-and-formats#dimensions-formats
- https://cube.dev/docs/working-with-string-time-dimensions
I didnt found the format for time-type.
So I try to use sql: PARSE_TIMESTAMP('%Y-%m-%d', date)
createdat: {
sql: `PARSE_TIMESTAMP('%Y-%m-%d',${CUBE}.\`createdAt\`)`,
type: `time`
},
it will return a error:
Error: Error: scalar function 'parse_timestamp' is not supported