Please update the row threshold value in pinot table config while creating it. this value shall be changed
"realtime.segment.flush.threshold.rows": "0" to "realtime.segment.flush.threshold.rows": "2"
refrence:https://docs.pinot.apache.org/basics/concepts/components/table