Skip to content
Unverified Commit 5b32d112 authored by Hicham Mallah's avatar Hicham Mallah Committed by Marios Trivyzas
Browse files

SQL: Fix issues with GROUP BY queries (#41964)

Translate to an agg query even if only literals are selected,
so that the correct number of rows is returned (number of buckets).

Fix issue with key only in GROUP BY (not in select) and WHERE clause:
Resolve aggregates and groupings based on the child plan which holds
the info info for all the fields of the underlying table.

Fixes: #41951
Fixes: #41413
(cherry picked from commit 45b85809)
parent b7291573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment