Aggarwal-Raghav opened a new pull request, #6579:
URL: https://github.com/apache/hive/pull/6579

   ### What changes were proposed in this pull request?
   Do Vector PTF input expressions evaluation eagerly on the original batch 
rather than lazily on the dense buffer.
   
   
   ### Why are the changes needed?
     To fix  ClassCastException s in window functions during vectorized 
execution. When  `VectorPTFOperator`  buffers rows, it compacts the column 
array to save memory, which shuffles the column indices. The old logic 
attempted to dynamically patch these indices but failed to traverse nested 
child expressions (like  A + B + C )
   
   
   ### Does this PR introduce _any_ user-facing change?
   NO
   
   ### How was this patch tested?
   Wrote 2 q files
   ```
   mvn test -Pitests -pl itests/qtest -Dtest=TestMiniLlapLocalCliDriver 
-Dqfile=vectorized_ptf_decimal_col_cast_exception.q,vectorized_ptf_long_col_cast_exception.q
 -Drat.skip=true
   ```


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