23 Commits

Author SHA1 Message Date
52629fbc4e Postgres: Return tables with hyphenated schemes (#45754)
* add basic test for buildSchemaConstraint function

* wrap table schema in quote_ident function

* fix type error in meta_query.test

* swap test for inline comment

* make comment more readable
2022-03-04 09:56:55 +01:00
20574c130a PostgreSQL: include numeric column type in Query Builder metaquery (#43445)
* Plugins: Change the PostgreSQL plugin to include more column types in Query Builder metaquery

Originally, the metaquery used in the PostgreSQL plugin to populate the
column dropdown menu in the Query Builder UI only included integer- and real-typed
columns. This change expands the list of acceptable types for plotting to
include numeric columns, boolean columns, and textual columns, as all are
types that could feasibly be desired to plot in a panel.

* Update types tracked in meta query builder

Removed the `boolean` and `text` types, but retained addition of `numeric` type as part of time series query builder.
2022-01-07 10:32:46 +01:00
21f45d4927 Postgres UUID group issue (#37999)
* Add UUID to types that can be grouped by

* Remove noop switch
2021-08-18 16:17:30 +02:00
bd66c8dde3 SQL data sources: Convert to return data frames (#32257)
Convert SQL data sources to return data frames.

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2021-05-05 16:46:07 +02:00
4e27ba9646 noImplicitAny: Sub 3000 errors (#17821)
* noImplicitAny Stackdriver

* Sub 3000 noImplicitAny

* Update error count limit

* Add DataQueryRequest type
2019-07-01 11:11:57 +02:00
b450b778cb Use buildTableConstraint instead of buildSchemaConstraint to find the datatype of a column if using a table from a different database schema 2018-12-04 19:26:12 +01:00
9dbdc29118 filter NULL values for column value suggestions 2018-09-26 10:56:25 +02:00
e07513bd65 Don't use unnest in queries for redshift compatibility 2018-09-19 10:59:25 +02:00
265d5daf57 Merge branch 'master' into postgres-query-builder 2018-08-31 19:02:46 +02:00
be978d1a8f fix metric column suggestions 2018-08-30 14:09:47 +02:00
e2c3b6c6c5 fix suggestions for metric column 2018-08-30 13:05:16 +02:00
ab4fbff454 handle quoting properly for table suggestion 2018-08-29 12:12:11 +02:00
49319fbdea prefill editor with first metric table 2018-08-18 13:21:08 +02:00
8e4db8cc3a suggest operators depending on datatype 2018-08-17 10:38:23 +02:00
8ced29a0e7 Don't do value suggestions for numeric and timestamp 2018-08-16 11:48:36 +02:00
1dd8192d51 fix datatype query 2018-08-13 09:57:46 +02:00
e4ae8be9fa fix suggestion query 2018-08-03 14:09:41 +02:00
6ca7a03975 consistent nameing fro group and select 2018-07-28 12:53:36 +02:00
ad26a319c5 refactor schema query generation 2018-07-27 14:02:12 +02:00
97f24733f5 remove tableschema from query builder ui 2018-07-27 10:58:08 +02:00
e1a37cf275 add order by to metadata queries 2018-07-22 17:12:30 +02:00
43686616a0 add query to find metric table 2018-07-15 22:26:32 +02:00
b28bf1a4f9 rename PostgresQueryBuilder to PostgresMetaQuery 2018-07-15 17:12:03 +02:00