apache / apache/pinot

[Regression] Non Agg Group By queries work in 0.11 but fail in 0.12

Open
#11,866 8 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
2d 55m
Merged PRs (30d)
182

Description

Non Aggregation Group By queries work in 0.11 but start to fail in 0.12. The change is introduced by [#9605](https://github.com/apache/pinot/pull/9605).

This is regression in 0.12 but it seems to be fixed in the current master branch. Does anyone know which PR fixes this?

example Non Agg Group By query which works in 0.11 but fails in 0.12:
`SELECT CONCAT(CONCAT(CONCAT(CONCAT(name, '-', ''), stage, ''), '.', ''), status, '') FROM tableName WHERE (occurred_at_hour BETWEEN 1696754872000 AND 1696841272000) GROUP BY name, stage, status LIMIT 10000`

Error in 0.12:
![image](https://github.com/apache/pinot/assets/42751784/3d081887-bd89-4889-9f15-e9df7813589f)

However, it works in current master branch:
![image](https://github.com/apache/pinot/assets/42751784/24672a38-22e3-4a8f-9e33-1f7062f8ab64)

Contributor guide

Open the contributing guide

Research direction

Reproduce the example GROUP BY query on Pinot 0.12 and current master, then inspect the changes around PR #9605 and the intervening history. The work is done when the PR or commit that restored this query behavior is identified and the regression is documented or covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.