xiangfu0 commented on code in PR #20279:
URL: https://github.com/apache/pinot/pull/20279#discussion_r4594181439
##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/ForwardIndexConfig.java:
##########
@@ -218,6 +225,11 @@ private ForwardIndexConfig(@JsonProperty("disabled")
@Nullable Boolean disabled,
_targetMaxChunkSizeBytes =
targetMaxChunkSize == null ? _defaultTargetMaxChunkSizeBytes : (int)
DataSizeUtils.toBytes(targetMaxChunkSize);
_targetDocsPerChunk = targetDocsPerChunk == null ?
_defaultTargetDocsPerChunk : targetDocsPerChunk;
+ Preconditions.checkArgument(
+ maxNumMultiValues == null || (maxNumMultiValues > 0 &&
maxNumMultiValues <= MAX_SUPPORTED_NUM_MULTI_VALUES),
Review Comment:
Fixed in f7629c6ff0. The legacy RAW MV writer uses the observed row width
and codec to size chunks. It falls back to the configured byte target when the
requested chunk exceeds the writer or codec limit. The regression seals and
reopens the reported V3 configuration and reads back all 65,536 LONG values.
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/mutable/MutableSegmentImpl.java:
##########
@@ -347,6 +347,11 @@ public MultiColumnTextMetadata
getMultiColumnTextMetadata() {
if (vectorIndexConfig.isEnabled()) {
// A vector column holds one value per dimension, which may exceed the
default cap
contextBuilder.withMaxNumMultiValues(vectorIndexConfig.getVectorDimension());
+ } else if (!fieldSpec.isSingleValueField()) {
+ Integer maxNumMultiValues =
indexConfigs.getConfig(StandardIndexes.forward()).getMaxNumMultiValues();
Review Comment:
Fixed in f7629c6ff0. Batch builds check the observed maximum against an
explicit limit before creating indexes, including when the forward index is
disabled. Tests cover the limit and one value above it for dictionary and RAW
encoding, plus a batch build with 1,001 values and no override. Realtime
conversion uses the limit already enforced during consumption, including
consuming-tier overrides.
--
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]