Orderby expression#94
Conversation
|
Thanks for the contribution - I agree that toStartOfHour(timestamp) DESC, timestamp DESCThat’s a valid source-level optimization. However, I’m less convinced about arbitrary user-level There are also some concerns:
Architecturally, I’d also avoid hardcoding something like: source.type == 'clickhouse'Instead, a capability-based approach (e.g. Let’s align on product direction before finalizing. p.s. |
Right, I don't need it that much myself. How about I move input box and everything under RAW QUERY? |
closes: #97
Why
My Clickhouse's log tables require very specific ORDER BY expression (
toStartOfHour(timestamp) desc,timestamp desc) .What
This PR adds ORDER_BY_expression entity to Clickhouse Sources (UI/tables/migration).
This ORDER_BY_expression is used by default in Logs also it displayed in the new InputBox at the right from Columns selector. This input allows to define ad-hoc orderby. Also this input box state will be stored in View along with ColumnsSelector, etc.
Plus tests.
References
100% vibe-coded by CC.
Later I am going to add a feature for changing this Logs viewer's ad-hoc ORDER_BY_expression by clicking to table's headers.