Ensure default influxql fill value of 'null' string

pull/1885/head
Jared Scheib 2017-09-05 15:56:19 -04:00
parent 67ab19515c
commit a814dbc9b0
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import {
TEMP_VAR_INTERVAL,
DEFAULT_DASHBOARD_GROUP_BY_INTERVAL,
} from 'shared/constants'
import {NULL_STRING} from 'shared/constants/queryFillOptions'
/* eslint-disable quotes */
export const quoteIfTimestamp = ({lower, upper}) => {
@ -24,7 +25,7 @@ export default function buildInfluxQLQuery(
config,
isKapacitorRule
) {
const {groupBy, fill, tags, areTagsAccepted} = config
const {groupBy, fill = NULL_STRING, tags, areTagsAccepted} = config
const {upper, lower} = quoteIfTimestamp(timeBounds)
const select = _buildSelect(config)