Jackie-Jiang commented on code in PR #18433:
URL: https://github.com/apache/pinot/pull/18433#discussion_r3270302503
##########
pinot-spi/src/main/java/org/apache/pinot/spi/utils/IngestionConfigUtils.java:
##########
@@ -117,8 +117,19 @@ public static int
getPinotPartitionIdFromStreamPartitionId(int partitionId, int
}
/// Returns the stream partition id from the Pinot segment partition id.
+ /// Safe to call for any table type: returns `partitionId` unchanged for
OFFLINE tables or REALTIME tables
+ /// that lack stream configs (treat as single-stream).
public static int getStreamPartitionIdFromPinotPartitionId(TableConfig
tableConfig, int partitionId) {
- return hasMultipleStreams(tableConfig) ?
getStreamPartitionIdFromPinotPartitionId(partitionId) : partitionId;
+ if (tableConfig.getTableType() != TableType.REALTIME) {
Review Comment:
Why do we ever call this on an OFFLINE table?
Even if we call it on an OFFLINE table, we shouldn't differentiate it from
real-time table
--
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]