74 Commits

Author SHA1 Message Date
7a5b5906ed fix quoting 2018-08-29 12:24:28 +02:00
da8696ed95 fix handling of variable interpolation for IN expresions 2018-08-26 22:43:03 +02:00
9699d7a166 make suggested filter macro depend on type 2018-08-18 12:11:10 +02:00
18ce6fc280 use unixEpochGroup macro for unix timestamp 2018-08-18 12:04:32 +02:00
907e8fd77c fix variable escaping 2018-08-15 11:37:30 +02:00
aa830211fe dont order for aggregate 2018-08-03 10:15:28 +02:00
dabfd88cd9 add moving average to query builder 2018-08-03 07:44:36 +02:00
2cae966e6c use $__timeGroupAlias macro 2018-08-02 21:40:15 +02:00
ace999b13f rename special to windows 2018-07-29 15:56:22 +02:00
26ea88252b add first and last support 2018-07-29 15:00:13 +02:00
412bb6acab refactor function handling in query builder 2018-07-29 13:31:50 +02:00
5327580939 refactor column function handling 2018-07-28 21:41:23 +02:00
6ca7a03975 consistent nameing fro group and select 2018-07-28 12:53:36 +02:00
97f24733f5 remove tableschema from query builder ui 2018-07-27 10:58:08 +02:00
b3ebc86093 fix window function query without group by 2018-07-23 07:52:42 +02:00
7af9cd7dfc set explicit order for rate and increase 2018-07-22 15:20:40 +02:00
84d7743939 fix pre gui queries shortcircuit 2018-07-21 10:38:34 +02:00
0e608a08c2 fix test for query generation 2018-07-15 22:58:25 +02:00
7f348f3836 dont run queries if target has no table set 2018-07-15 22:27:33 +02:00
b28bf1a4f9 rename PostgresQueryBuilder to PostgresMetaQuery 2018-07-15 17:12:03 +02:00
070b556fd3 dont expand variables in rawSql 2018-07-15 17:02:26 +02:00
6e824e81bf fix rate special function when using group by 2018-07-15 15:14:12 +02:00
d9648f1fe7 fix bug in query generation with metricColumn 2018-07-15 09:43:38 +02:00
fa66645b0f refactor PostgresQuery 2018-07-15 09:36:49 +02:00
d7ed706e12 refactor PostgresQueryCtrl and PostgresQuery 2018-07-14 20:28:34 +02:00
2dc9d4e960 refactor addGroupBy and removeGroupByPart 2018-07-14 16:46:53 +02:00
b745fab190 add tests for query generation 2018-07-13 22:29:10 +02:00
bf21f1bf76 indent generated SQL 2018-07-12 22:36:41 +02:00
a24a6624e3 handle counter overflow and resets in rate 2018-07-12 13:15:19 +02:00
0935526d23 partition by metricColumn when using increase 2018-07-12 10:13:21 +02:00
bbe7b9b908 add rate and increase special functions 2018-07-12 09:57:04 +02:00
2784a2df6b Refactor value column SQL generation 2018-07-11 13:03:06 +02:00
9ba42f63f1 Refactor metric column sql generation 2018-07-11 12:33:37 +02:00
a86e77fc68 Refactor group by query generation 2018-07-11 12:20:24 +02:00
b9edc3c611 Refactor where clause generation 2018-07-11 11:50:02 +02:00
5dd236bf05 refactor SQL generation for value columns 2018-07-11 11:09:28 +02:00
772825ed09 Refactor time column sql generation 2018-07-11 11:00:12 +02:00
c5bde0ef45 Refactor render function on PostgresQuery 2018-07-11 10:50:49 +02:00
0e610cad1b set query gui as default handle old panels gracefully 2018-07-10 21:40:59 +02:00
e8e24f6139 add alias when adding group by 2018-07-10 11:32:23 +02:00
6e7161f238 add aggregates when adding group by 2018-07-10 11:14:00 +02:00
8490ae41b6 handle pre query gui queries gracefully 2018-07-07 20:41:24 +02:00
eb170e741b dont break on panels that dont have rawQuery set 2018-07-07 19:59:25 +02:00
a63298bca2 remove unused function removeSelect 2018-07-06 11:25:20 +02:00
6143924ec6 fix where clause generation 2018-07-06 10:56:47 +02:00
7600c6efcb remove hardcoded $__timeFilter, make macros functional in where clause 2018-07-06 10:38:52 +02:00
85ab1cfa8f fix constraint removal 2018-07-06 09:28:34 +02:00
d8c7756489 dont autoquote, suggest quoted values if requried 2018-07-05 21:36:39 +02:00
3f614e635b do not autoquote identifiers 2018-07-05 11:27:19 +02:00
c604651092 fix group by ui 2018-07-05 10:19:22 +02:00