Open MattBlissett opened 8 months ago
The dimensions year, yearmonth and yearmonthday can be derived from the existing GBIF year, month and day columns:
year
yearmonth
yearmonthday
month
day
CONCAT_WS('-', year, month, day) AS date ... WHERE year IS NOT NULL AND month IS NOT NULL AND day IS NOT NULL
Though it might be helpful to provide a function to calculate the middle of a date range:
date_average(eventdategte, eventdatelte)
equivalent to
(eventdatelte + eventdategte) / 2
Also consider formatting this as as string when output.
https://docs.gbif-uat.org/b-cubed/1.0/en/#temporal
The dimensions
year
,yearmonth
andyearmonthday
can be derived from the existing GBIFyear
,month
andday
columns:Though it might be helpful to provide a function to calculate the middle of a date range:
equivalent to
Also consider formatting this as as string when output.
https://docs.gbif-uat.org/b-cubed/1.0/en/#temporal