Shekharrajak commented on issue #13204:
URL: https://github.com/apache/druid/issues/13204#issuecomment-4216369790

   Plain query to validate : 
   
   
   ```sql
   SELECT dim1, dim2, SUM(cnt)
   FROM druid.foo
   WHERE dim2 = 'a'
   GROUP BY GROUPING SETS ( (dim1, dim2), (dim1) )
   ```
   
   Before (incorrect):
   
   ```
   dim1 | dim2 | SUM(cnt)
   ""   | a    | 1
   "1"  | a    | 1
   ""   | a    | 1   -- should be null
   "1"  | a    | 1   -- should be null
   ```
   
   Expected (correct):
   
   ```
   dim1 | dim2 | SUM(cnt)
   ""   | a    | 1
   "1"  | a    | 1
   ""   | null | 1
   "1"  | null | 1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to