Skip to content

Remove empty "bucket_root" column from aggregations without GROUP BY #42

Description

@fupelaqu

Description

When executing an aggregation query without a GROUP BY clause (i.e., a global aggregation), a synthetic bucket_root column is added to the result set with no value. This column does not provide meaningful information and can be confusing for users and downstream tools.

Example

SELECT COUNT(*) FROM ecommerce

Current result set:

bucket_root COUNT(*)
20

Expected Behaviour

The bucket_root column should not appear in the result set for global aggregations:

COUNT(*)
20

Impact

  • Confuses users analyzing query results
  • Causes issues with tools that auto-detect column types (empty column)
  • Breaks schema expectations in Arrow Flight SQL clients and JDBC consumers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions