KiranVelumuri commented on PR #5651:
URL: https://github.com/apache/hive/pull/5651#issuecomment-2675265471

   I've analysed how it's working in the case of CBO=true, and tried to 
replicate the same for CBO=false.
   
   Sample case analysed:
   ```
   CBO true
   
   TableScanOperator TS[0]
   SelectOperator SEL[1] (_col0: 
array<struct<col1:string,col2:int,col3:decimal(3,2)>>|{null}_c1) size = 1
   UDTFOperator UDTF[2] (col1: string|{$hdt$_0}col1,col2: 
int|{$hdt$_0}col2,col3: decimal(3,2)|{$hdt$_0}col3) size = 3
   SelectOperator SEL[3] (_col0: string|{null}_col0,_col1: 
int|{null}_col1,_col2: decimal(3,2)|{null}_col2) size = 3
   FileSinkOperator FS[4]
   ```
   
   ```
   CBO false
   
   TableScanOperator TS[0]
   SelectOperator SEL[1] (_col0: 
array<struct<col1:string,col2:int,col3:decimal(3,2)>>|{null}_c1) size = 1
   UDTFOperator UDTF[2] (col1: string|{null}col1,col2: int|{null}col2,col3: 
decimal(3,2)|{null}col3) size = 3
   FileSinkOperator FS[3]
   ```
   
   ```
   CBO false (Updated in this PR)
   
   TableScanOperator TS[0]
   SelectOperator SEL[1] (_col0: 
array<struct<col1:string,col2:int,col3:decimal(3,2)>>|{null}_c1) size = 1
   UDTFOperator UDTF[2] (col1: string|{null}col1,col2: int|{null}col2,col3: 
decimal(3,2)|{null}col3) size = 3
   SelectOperator SEL[3] (_col0: string|{null}_col0,_col1: 
int|{null}_col1,_col2: decimal(3,2)|{null}_col2) size = 3
   FileSinkOperator FS[4]
   ```
   


-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to