However, there are a lot of cases when the underlying table’s datetime information is stored as a string. Most SQL databases support datetime parsing which allows converting strings to timestamps. Let’s consider an example cube for BigQuery:Documentation Index
Fetch the complete documentation index at: https://cubed3-docs-cub-2416-update-semantic-snowflake-semantic-vie.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
date column will be parsed using the
%Y-%m-%d format.
Please note that as we do not pass timezone parameter to
PARSE_TIMESTAMP, it will set UTC as the timezone by
default. You should always set timezone appropriately for parsed timestamps as
Cube always does timezone conversions according to user settings.
Although query performance of big data backends like BigQuery or Presto won’t
likely suffer from date parsing, performance of RDBMS backends like Postgres
most likely will. Adding timestamp columns with indexes or transforming the
data upstream should strongly be considered in this case.