Ensure default influxql fill value of 'null' string
parent
502ac19afe
commit
c5bb9fd25a
|
@ -4,6 +4,7 @@ import {
|
||||||
TEMP_VAR_INTERVAL,
|
TEMP_VAR_INTERVAL,
|
||||||
DEFAULT_DASHBOARD_GROUP_BY_INTERVAL,
|
DEFAULT_DASHBOARD_GROUP_BY_INTERVAL,
|
||||||
} from 'shared/constants'
|
} from 'shared/constants'
|
||||||
|
import {NULL_STRING} from 'shared/constants/queryFillOptions'
|
||||||
|
|
||||||
/* eslint-disable quotes */
|
/* eslint-disable quotes */
|
||||||
export const quoteIfTimestamp = ({lower, upper}) => {
|
export const quoteIfTimestamp = ({lower, upper}) => {
|
||||||
|
@ -24,7 +25,7 @@ export default function buildInfluxQLQuery(
|
||||||
config,
|
config,
|
||||||
isKapacitorRule
|
isKapacitorRule
|
||||||
) {
|
) {
|
||||||
const {groupBy, fill, tags, areTagsAccepted} = config
|
const {groupBy, fill = NULL_STRING, tags, areTagsAccepted} = config
|
||||||
const {upper, lower} = quoteIfTimestamp(timeBounds)
|
const {upper, lower} = quoteIfTimestamp(timeBounds)
|
||||||
|
|
||||||
const select = _buildSelect(config)
|
const select = _buildSelect(config)
|
||||||
|
|
Loading…
Reference in New Issue