When a date trend or time dimension is used and there is no data you get and sql error.
Line 65 of dimension.rb:
"CASE #{whens.join(' ')} ELSE NULL END AS #{@klass.connection.send(:quote_column_name, variable_name)}";
returns:
CASE ELSE NULL END AS "dimension_0"
Which is invalid. Might want to add a check for the "whens" variable on like 64.
When a date trend or time dimension is used and there is no data you get and sql error. Line 65 of dimension.rb: "CASE #{whens.join(' ')} ELSE NULL END AS #{@klass.connection.send(:quote_column_name, variable_name)}";
returns: CASE ELSE NULL END AS "dimension_0"
Which is invalid. Might want to add a check for the "whens" variable on like 64.