-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
discussIssue needs discussionIssue needs discussion
Description
The current spec/validation rules for TSDB fields that are allowed to be dimensions are missing boolean. Currently it's a valid type to be a dimension, see docs. However when building a package setting boolean as TSDB dimensions an validation error is shown:
Error: package installation failed: failed to build package: invalid content found in built zip package: found 8 validation errors:
1. file "/home/user/devel/github.com/elastic/integrations/build/packages/linux-1.1.0.zip/data_stream/conntrack/fields/agent.yml" is invalid: field "host.containerized" of type boolean can't be a dimension, allowed types for dimensions: constant_keyword, keyword, long, integer, short, byte, double, float, half_float, scaled_float, unsigned_long, ip
It'd be good to update the spec and elastic-package to support boolean as it's now supported by Elasticsearch.
The list of supported types for dimension fields is validated in
| var allowedDimensionTypes = []string{ |
The first version of Elasticsearch that documents boolean as supported type for dimension is 8.16 (here), so it should be supported only on versions of the spec over 3.1, see https://github.com/elastic/elastic-package/blob/main/docs/howto/format_version.md#what-format-version-to-choose-for-a-package
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussIssue needs discussionIssue needs discussion
Type
Fields
Give feedbackNo fields configured for issues without a type.