datafibers opened a new issue, #17984:
URL: https://github.com/apache/druid/issues/17984

   The Druid window function is used without a group and returns nothing. If 
the function has to use group by, throw an exception when it is not there
   
   ### Affected Version
   
   latest 29.0.1
   
   ### Description
   
   The Druid window function is used without a group and returns nothing. If 
the function has to use group by, throw an exception or report a syntax error 
when it is not there.
   
   1. select a from tb -- working and showing 10 rows for example
   2. select a, row_number() over() as rn from tb -- working but shows nothing 
and no exceptions or errors
   3. select a, row_number() over() as rn from tb group by a -- working fine 
with proper row number
   
   For case 2, please throw a syntax error instead of returning an empty 
result. I have tested both in Druid web UI and rest API.
   


-- 
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