rohangarg commented on PR #14232:
URL: https://github.com/apache/druid/pull/14232#issuecomment-1600508796

   @abhishekagarwal87 : An example of the intermediate DAG looks like : 
   
   ```
   DruidSort(sort0=[$2], sort1=[$0], dir0=[DESC], dir1=[ASC], druid=[logical]): 
rowcount = 100.0, cumulative cost = {201.0 rows, 1067.0 cpu, 0.0 io}, id = 136
     DruidProject(dim1=[$0], EXPR$1=[SUBSTRING($0, 2)], 
EXPR$2=[CHAR_LENGTH($0)], druid=[logical]): rowcount = 100.0, cumulative cost = 
{101.0 rows, 67.0 cpu, 0.0 io}, id = 135
       DruidAggregate(group=[{1}], druid=[logical]): rowcount = 100.0, 
cumulative cost = {101.0 rows, 17.0 cpu, 0.0 io}, id = 134
         DruidTableScan(table=[[druid, foo]], druid=[logical]): rowcount = 
1000.0, cumulative cost = {tiny}, id = 130
   ```
   
   This is for the sql query : 
   ```
   SELECT
     dim1, SUBSTRING(dim1, 2)
   FROM druid.foo
   GROUP BY dim1
   ORDER BY CHARACTER_LENGTH(dim1) DESC, dim1
   ```


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