dimension_group: timestamp{
type: time
description: “day-month-year time of leave”
timeframes: [
raw,
day_of_week,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.“timestamp” ;;
}
I am trying to create a new field out of this where I get +8 hours with this timestamp field, something like this–
dimension_group: timestamp+8hours{
type: time
description: “day-month-year time of leave”
timeframes: [
raw+8hours,
day_of_week+8hours,
time+8hours,
date+8hours,
week+8hours,
month+8hours,
quarter+8hours,
year+8hours
]
sql: ${TABLE}.“timestamp” ;;
}
basically, every time frame(date, time etc) will be increased by 8 hours!
I don’t know what will definitely work as I don’t have access to PostgreSQL. You need to check SQL implementation for PostgreSQL to find the right function. Why does it matter that database is in UTC? You only said that you want to add 8 hours to your timestamp. Are you trying to convert it into a different time zone?