Merge pull request #13427 from svenklemm/postgres-suggest-null-fix

filter NULL values in column value suggestion query
This commit is contained in:
Marcus Efraimsson 2018-09-26 16:21:11 +02:00 committed by GitHub
commit 869e36995a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,6 +144,7 @@ table_schema IN (
let query = 'SELECT DISTINCT quote_literal(' + column + ')';
query += ' FROM ' + this.target.table;
query += ' WHERE $__timeFilter(' + this.target.timeColumn + ')';
query += ' AND ' + column + ' IS NOT NULL';
query += ' ORDER BY 1 LIMIT 100';
return query;
}