shauryachats commented on code in PR #16390:
URL: https://github.com/apache/pinot/pull/16390#discussion_r2219530007
##########
pinot-controller/src/main/resources/app/components/Query/TimeseriesQueryPage.tsx:
##########
@@ -106,8 +113,75 @@ const useStyles = makeStyles((theme) => ({
padding: theme.spacing(1),
minWidth: 0,
},
+
}));
+// Extract warning component
+const TruncationWarning: React.FC<{ totalSeries: number; truncatedSeries:
number }> = ({
+ totalSeries,
+ truncatedSeries
+}) => {
+ if (totalSeries <= truncatedSeries) return null;
+
+ return (
+ <Alert severity="warning" style={{ marginBottom: '16px' }}>
+ <Typography variant="body2">
+ Large dataset detected: Showing first {truncatedSeries} of
{totalSeries} series for visualization.
+ Switch to JSON view to see the complete dataset.
+ </Typography>
Review Comment:
The screenshot is attached in the testing section of this PR.
<img width="1501" height="802" alt="Screenshot 2025-07-20 at 6 30 36 PM"
src="https://github.com/user-attachments/assets/be092c8c-ce15-4a22-9a44-14f550f2c754"
/>
--
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]