Commit graph

7 commits

Author SHA1 Message Date
Drew Davis
1cf8cebb4b
feat: Support JSON Sessions (#1628) 2026-01-21 19:25:39 -05:00
Karl Power
bc8c4eec9a
feat: allow applying session settings to queries (#1609)
Closes HDX-3154

This PR adds a feature that allows the user to add settings to a source. These settings are then added to the end of every query that is rendered through the `renderChartConfig` function, along with any other chart specific settings. 

See: https://clickhouse.com/docs/sql-reference/statements/select#settings-in-select-query

Most of the work was to pass the `source` or `source.querySettings` value through the code to the `renderChartConfig` calls and to update the related tests. There are also some UI changes in the `SourceForm` components.

`SQLParser.Parser` from the `node-sql-parser` throws an error when it encounters a SETTINGS clause in a sql string, so a function was added to remove that clause from any sql that is passed to the parser. It assumes that the SETTINGS clause will always be at the end of the sql string, it removes any part of the string including and after the SETTINGS clause.


https://github.com/user-attachments/assets/7ac3b852-2c86-4431-88bc-106f982343bb
2026-01-21 16:07:30 +00:00
Drew Davis
9725a1fc9c
chore: Remove beta label from MVs (#1624)
Closes HDX-3223

# Summary

This PR removes the Beta label from materialized views, now that the following limitations have been addressed

1. MVs now support alerts
2. Charts are now auto-aligned with MV granularity

<img width="944" height="802" alt="Screenshot 2026-01-20 at 9 43 46 AM" src="https://github.com/user-attachments/assets/a05dcef0-9074-4610-8516-fb1b8e93941c" />
<img width="639" height="490" alt="Screenshot 2026-01-20 at 9 43 29 AM" src="https://github.com/user-attachments/assets/0b078f9b-30e2-4920-898d-95d64ee453d4" />
2026-01-20 16:00:17 +00:00
Elizabet Oliveira
5b3ce9fc7c
Standardize Button/ActionIcon variants and enforce via ESLint (#1610) 2026-01-16 14:42:16 +00:00
Karl Power
7a8b261be7
feat: allow validating highlighted attribute expressions when creating (#1576)
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@clickhouse.com>
2026-01-15 10:21:27 +01:00
Drew Davis
f39fcdac6a
fix: Refresh metadata after creating new connection in local mode (#1582) 2026-01-13 07:55:12 -05:00
Elizabet Oliveira
5dded38f87
feat(app): refactor Sources components and add custom Mantine UI variants (#1561)
Co-authored-by: Drew Davis <drew.davis@clickhouse.com>
2026-01-07 14:02:36 +00:00
Renamed from packages/app/src/components/SourceForm.tsx (Browse further)