Anish Nair
07/05/2022, 7:53 AMKartik Khare
07/05/2022, 8:02 AMTables
tab in the UI.Laxman Ch
07/05/2022, 8:37 AM$segmentName
You can use this to get segment level insights of a table.
https://docs.pinot.apache.org/basics/components/schema#built-in-virtual-columns
simple example:
select $segmentName, count(*) from <table>
where
<time_column> >= 'start-time' AND <time_column> < 'end-time'
group by $segmentName
Laxman Ch
07/05/2022, 8:38 AMAnish Nair
07/05/2022, 9:11 AMKartik Khare
07/05/2022, 9:13 AMKartik Khare
07/05/2022, 9:14 AMSELECT DISTINCT(colName), $segmentName FROM table GROUP BY $segmentName
Anish Nair
07/05/2022, 9:14 AMKartik Khare
07/05/2022, 9:15 AMAnish Nair
07/05/2022, 9:35 AM