Hi all! I wanted to know on what basis the segment...
# general
m
Hi all! I wanted to know on what basis the segments are being created? The table that I have in pinot didn't show query results. Instead it shows error like Error Code: 305, 7 Segments unavailable. Can someone help me in understanding segments and some permanent fix for this?
r
Are you setting up a new table? If so, what type of table is it? Real-time or offline?
m
Can you run the debug api? Likely this is upsert table and you have some segments that are not ONLINE?
m
@robert zych I have created a table already. it is a realtime table
These segments are in updating status for almost a day. Because of the updating status, it didn't show the query result.
r
I ran into a similar issue with an upsert enabled table for an older version. Which version are you using?
m
I'm not sure about the exact version number. But the pinot that we are using is the latest
@robert zych the version is 0.2.7
r
The latest version is 1.0. I would recommend an upgrade
m
May I know on what basis the segments are being created? Is it over a period of time or over number of entries(rows)
r
When a consuming segment is sealed is determined by the flush settings in your table config. Time and row count are both used. The constraints that matches first determines the size of the segment.