Skip to content

Conversation

@stoewer
Copy link
Contributor

@stoewer stoewer commented Jul 10, 2025

What this PR does:
The analyse block sub command is used to find candidates for dedicate attribute columns. So far the sub commands analyse block and analyse blocks included attributes containing string arrays in this analysis. As a result those attributes were configured as dedicated attribute columns.

Dedicated attribute columns only support string attributes. When attributes with string array values are configured as dedicated attribute column, it is no longer possible to query for those attributes.

With this change the respective sub commands skip over attributes with array values in order to avoid making misleading suggestions for dedicated attribute columns.

Note: Reading the IsArray column would have been difficult with the parquetinspect package. Therefore the aggregation was re-implemented using iterators from parquetquery. The parquetinspect was no longer used and therefore removed.

Which issue(s) this PR fixes:
Contributes to https://github.com/grafana/tempo-squad/issues/724

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

stoewer added 3 commits July 10, 2025 08:48
Reading the IsArray column would have been difficult with the
'parquetinspect' package. Therefore the aggregation was re-
implemented using iterators from 'parquetquery'
The package is no longer used
Copy link
Contributor

@ie-pham ie-pham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stoewer stoewer merged commit ebd9e69 into grafana:main Jul 11, 2025
36 of 38 checks passed
knylander-grafana pushed a commit to knylander-grafana/tempo-doc-work that referenced this pull request Jul 18, 2025
)

* The analyse block sub command skips attributes with arrays

Reading the IsArray column would have been difficult with the
'parquetinspect' package. Therefore the aggregation was re-
implemented using iterators from 'parquetquery'

* Print skipped attributes in full sumary

* Remove parquetinspect package

The package is no longer used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants