-
Notifications
You must be signed in to change notification settings - Fork 78
Query builder ignores column argument #139
Comments
@fermuch I'm not sure I understand the issue. |
But what if I have events, which have a |
You will have to do it without the macro |
I can't filter without the macro, since I can't get the milliseconds for the start and end of the user chosen time filter |
Adding An example query would be: SELECT `started_at` > TIMESTAMP_MILLIS ($__from) Which is translated into: SELECT `started_at` > TIMESTAMP_MILLIS (1568360548569) And if those two are added, also supporting Here are the docs for |
Adding $__millisTimeTo and $__millisTimeFrom |
Bug Report
The macros
$__timeFilter
,$__timeFrom
and$__timeTo
ignore the column argument.As an example, the query:
SELECT $__timeFrom(column)
should be converted to:
but instead it is converted to:
The same happens to the other macros.
If instead the
column
argument is provided as an string'column'
or in any other form (with backticks, for example), the query builder fails to convert it and just passes the string literal to bigquery ($__timeFrom(column)
)Specifications
The text was updated successfully, but these errors were encountered: