mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
filter NULL values for column value suggestions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user