Problem
Quickwit's _field_caps endpoint reports boolean fields as type boolean, but the plugin's fieldTypeMap in src/utils/index.ts does not include a boolean entry. This means:
- Boolean fields get
type: undefined when mapped through fieldTypeMap
- They are excluded from type-filtered field pickers (e.g. when the query editor requests "number" or "string" fields)
- They may not appear in autocomplete suggestions
Scope
In our OTEL log index, there are 157 boolean fields (dynamic JSON subfields). These are fields like attributes.attr.command.ignoreUnknownIndexOptions that have boolean values in the indexed JSON documents.
Fix
Add boolean to fieldTypeMap:
export const fieldTypeMap: Record<string, string> = {
// ... existing entries ...
boolean: 'boolean',
};
May also need to handle boolean in filter operator selection if Grafana passes boolean values as strings.
Problem
Quickwit's
_field_capsendpoint reports boolean fields as typeboolean, but the plugin'sfieldTypeMapinsrc/utils/index.tsdoes not include abooleanentry. This means:type: undefinedwhen mapped throughfieldTypeMapScope
In our OTEL log index, there are 157 boolean fields (dynamic JSON subfields). These are fields like
attributes.attr.command.ignoreUnknownIndexOptionsthat have boolean values in the indexed JSON documents.Fix
Add
booleantofieldTypeMap:May also need to handle boolean in filter operator selection if Grafana passes boolean values as strings.