rohityadav1993 commented on code in PR #13837: URL: https://github.com/apache/pinot/pull/13837#discussion_r1740099822
########## pinot-connectors/pinot-flink-connector/src/main/java/org/apache/pinot/connector/flink/sink/FlinkSegmentWriter.java: ########## @@ -124,12 +135,26 @@ public void init(TableConfig tableConfig, Schema schema, Map<String, String> bat "batchConfigMaps must contain only 1 BatchConfig for table: %s", _tableNameWithType); Map<String, String> batchConfigMap = _batchIngestionConfig.getBatchConfigMaps().get(0); + batchConfigMap.put(BatchConfigProperties.UPLOADED_REALTIME_PARTITION_ID, Integer.toString(_indexOfSubtask)); Review Comment: The partitioning is controlled by Flink partioning logic (see README). This was part of the original implementation, where `RichFunction.getRuntimeContext().getIndexOfThisSubtask()` provides the partition number if Flink parallelism is the same as the number of partitions. Same is being used to set the partition id for segment name generation. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org