Skip to content

Commit 044533b

Browse files
twou12031travilyu
authored andcommitted
[bugfix] deepflow querier datasource, when using tag from 'SELECT' in 'WHERE' throw error after reload
**Phenomenon and reproduction steps** none **Root cause and solution** none **Impactions** none **Test method** none **Affected branch(es)** - main **Checklist** - [ ] Dependencies update required - [ ] Common bug (similar problem in other repo)
1 parent b8f0698 commit 044533b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepflow-querier-datasource/src/QueryEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Button, Form, InlineField, Select, Input, Alert, getTheme, Icon, Toolti
66
import { QueryEditorFormRow } from './components/QueryEditorFormRow'
77
import _ from 'lodash'
88
import * as querierJs from 'deepflow-sdk-js'
9-
import { formatTagOperators, genGetTagValuesSql, uuid } from 'utils/tools'
9+
import { formatTagOperators, genGetTagValuesSql, getRealKey, uuid } from 'utils/tools'
1010
import { getTemplateSrv } from '@grafana/runtime'
1111
import {
1212
BasicDataWithId,
@@ -764,7 +764,7 @@ export class QueryEditor extends PureComponent<Props> {
764764
if (!item.key) {
765765
return
766766
}
767-
const tagMapItem = getTagMapCache(db, from, item.key)
767+
const tagMapItem = getTagMapCache(db, from, getRealKey(item))
768768
const tagName = tagMapItem.name
769769
const tagType = _.get(tagMapItem, 'type')
770770
if (!INPUT_TAG_VAL_TYPES.includes(tagType) && SELECT_TAG_VAL_OPS.includes(item.op)) {

0 commit comments

Comments
 (0)