You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our case we are wanting to pull logs from the server (with ungrouped: true) and get them ordered according to millisecond/microsecond timestamps which are in the database.
In order to work around this issue I've had to resort to the following hack:
- name: created
sql: created
type: time
primary_key: true
- name: timestamp
description: The unix epoch timestamp of the message
sql: "toFloat64({CUBE}.created)"
type: number
The text was updated successfully, but these errors were encountered:
In anything marked as a
type: time
, the following code causes ClickhouseDateTime64()
columns to be truncated to per-second:cube/packages/cubejs-schema-compiler/src/adapter/ClickHouseQuery.ts
Lines 42 to 51 in 1cf867a
In our case we are wanting to pull logs from the server (with
ungrouped: true
) and get them ordered according to millisecond/microsecond timestamps which are in the database.In order to work around this issue I've had to resort to the following hack:
The text was updated successfully, but these errors were encountered: