My database performs much better using
."" > ‘2019-01-01’
rather than looker usual choice
TO_CHAR(TO_DATE(."" ), ‘YYYY-MM-DD’)) > ‘2019-001-01’
is there a way to force looker to use first option?
Note that field must still be a date (not a string) and that I tested all the following and none works:
dimension: d1 {type: date_raw datatype: yyyymmdd sql: ${TABLE}.“ACTIVE_DATE” ;;}
dimension: d2 {type: date sql: ${active_raw} ;; }
dimension: d3 {type: date_raw sql: ${active_raw} ;; }
dimension: d4 {type: date_raw sql: ${active_date} ;; }
dimension: d5 {type: date sql: active_date ;; }
dimension: d6 {type: date convert_tz: no sql: active_date ;; }
dimension: d7 {type: date datatype: date convert_tz: no sql: active_date ;; }
dimension: d8 {type: date datatype: time sql: active_date ;; }
Thanks