24d7d8c358
Influx: Update flightsql
language definition ID ( #106901 )
...
fix: replace flightsql languageDefinition.id `flightsql` with `sql`
Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
2025-06-18 13:34:51 +01:00
5a7916133e
Chore: Remove sqlQuerybuilderFunctionParameters
feature toggle ( #100809 )
...
* chore: remove `sqlQuerybuilderFunctionParameters` ff
* Update packages/grafana-sql/src/components/visual-query-builder/SelectRow.tsx
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2025-02-19 15:38:27 +01:00
ecc9b0c10c
partner data sources: remove experimental imports from datasources ( #99370 )
...
* remove experimental imports from datasources
* add plugin-ui deps
* remove
* trigger workflow
* Make versions of plugin-ui fixed
* Fix import in test
---------
Co-authored-by: Ivana Huckova <ivana.huckova@gmail.com>
2025-01-28 18:44:22 +07:00
85c696c4ad
SQL: Add macro support in select case ( #88514 )
...
* Feat: timeGroup macro handling in VQB
* Add tests
* Add functions to SQL ds
* Fix lint errors
* Add feature toggle
* Add rendering based on object
* Fix lint
* Fix CI failures
* Fix tests
* Address review comments
* Add docs
* Fix JSX runtime warnings
* Remove docs part that mentions suggest more macros
* Update docs/sources/shared/datasources/sql-query-builder-macros.md
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
* Add smoke test for this feature
* lint
* Add supported macros to influx
* Add setupTests.ts to include in tsconfig.json
* Import jest-dom instead of setupTests.ts
---------
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-11-04 17:13:35 +01:00
a9736cf7dc
InfluxDB: Fix query builder produces invalid SQL query when using wildcard column name ( #89032 )
...
* influx: changes to not wrap * with double quotes for column name
Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
* added unit test for https://github.com/grafana/grafana/issues/88008
Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
---------
Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
2024-06-19 08:39:53 +02:00
4cc6b53a6d
Chore: InfluxDB unit testing overhaul ( #86586 )
...
* move mocks into the __mocks__ folder
* refactor datasource.test.ts
* refactor datasource_backend_mode.test.ts
* add dbName tests
* prettier
* betterer
2024-04-30 09:59:42 -04:00
dc4c539d46
InfluxDB: Fix sql query generation by adding quotes around the identifiers ( #83765 )
...
* Quote the identifiers
* wrap where filter with quotes
* fix query generation
2024-03-05 11:22:33 +01:00
29e8a355cb
sql: extract frontend code into separate package ( #81109 )
...
* sql: extract frontend code into separate package
* updated package version
2024-01-26 11:38:29 +01:00
5eae18c166
InfluxDB SQL: Don't show dataset dropdown ( #78553 )
...
* Don't show dataset dropdown
* Default dataset is iox
* introduce sql dialect
2023-11-27 15:23:54 +01:00
3cb92e3460
InfluxDB: Template variable support for SQL language ( #77799 )
...
* Only run through with classicQuery if the language is influxql and backend migration is disabled
* Add variable editor
* Simple template variable support
* Show template variables in the drowdowns
* better imports
* unit tests
* it is now 11 just because we add rawSql interpolation in datasource.ts applyVariables method
* fix
2023-11-08 15:00:13 +01:00
2d603bed22
InfluxDB SQL: Add time filter automatically ( #75953 )
...
* Use double quotes instead of backticks
* render time field as datetime
* add @react-awesome-query-builder/core
* Add time range filtering
* Update test
* Update macro test
2023-10-04 17:00:24 +02:00
c64e73540d
InfluxDB SQL: Use double quotes instead of backticks ( #75443 )
...
Use double quotes instead of backticks
2023-10-04 15:47:54 +02:00
a64bfdfb94
InfluxDB SQL: Provide raw query preview for query history ( #75030 )
...
* log the sql query
* render the raw sql
* Update rawQuery
* unit tests
2023-09-22 17:40:18 +02:00