Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a Date field in dimension group causes format_timestamp error #13

Open
PowdyPowPow opened this issue Aug 29, 2018 · 1 comment
Open

Comments

@PowdyPowPow
Copy link

Hi,
when using master_stats.Date dimension group we get the following error:

screen shot 2018-08-29 at 10 12 30

At least in our tables the Date field is actually a date field not a timestamp. This error can be fixed by converting the date field to timestamp in the master_stats view:

dimension_group: date { type: time timeframes: [raw, date, week, month, quarter, year] convert_tz: no sql: TIMESTAMP(${TABLE}.Date) ;; }

Thanks,

@PowdyPowPow
Copy link
Author

The same issue with campaign End date.

dimension_group: end { type: time timeframes: [ raw, date, week, month, quarter, year ] convert_tz: no sql: TIMESTAMP(${TABLE}.EndDate) ;; }

The campaign start date was already converted into timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant