tarun11Mavani opened a new pull request, #16721:
URL: https://github.com/apache/pinot/pull/16721

   ### What
   This PR adds support for a new built-in virtual column $partitionId that 
provides partition information for segments in query results.
   
   - Created PartitionIdVirtualColumnProvider - A new virtual column provider 
that efficiently serves partition ID values using constant readers
   - Enhanced VirtualColumnProviderFactory to automatically add $partitionId to 
segment schemas during loading
   - Updated TableCache to include $partitionId in built-in virtual columns
   
   
   ### Testing
   Updated integration tests to include $partitionId in virtual column queries
   Added comprehensive test testPartitionIdVirtualColumn() that validates:
   Realtime segments return correct partition IDs extracted from segment names
   Offline segments return -1
   Filtering and aggregation operations work correctly
   Query result consistency
   
   Closes #15858 .


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