clintropolis commented on code in PR #19106:
URL: https://github.com/apache/druid/pull/19106#discussion_r2984520108
##########
indexing-service/src/main/java/org/apache/druid/indexing/compact/CascadingReindexingTemplate.java:
##########
@@ -123,11 +134,24 @@ public CascadingReindexingTemplate(
InvalidInput.conditionalException(defaultSegmentGranularity != null,
"'defaultSegmentGranularity' cannot be null");
this.defaultSegmentGranularity = defaultSegmentGranularity;
+ InvalidInput.conditionalException(defaultPartitionsSpec != null,
"'defaultPartitionsSpec' cannot be null");
+ this.defaultPartitionsSpec = defaultPartitionsSpec;
+
+ this.defaultPartitioningVirtualColumns = defaultPartitioningVirtualColumns;
+
+ this.tuningConfig = tuningConfig;
+
if (skipOffsetFromNow != null && skipOffsetFromLatest != null) {
throw InvalidInput.exception("Cannot set both skipOffsetFromNow and
skipOffsetFromLatest");
}
this.skipOffsetFromNow = skipOffsetFromNow;
this.skipOffsetFromLatest = skipOffsetFromLatest;
+
+ this.defaultPartitioningRule = ReindexingPartitioningRule.syntheticRule(
+ defaultSegmentGranularity,
+ defaultPartitionsSpec,
+ defaultPartitioningVirtualColumns
+ );
Review Comment:
>by it do you mean partitionsSpec?
yes
> I had planned on documenting it as being blown away ...
it is probably fine if we document that whatever you set there is ignored.
Maybe perhaps a log.warn or something if it is set on the tuningconfig but a
`defaultPartitionsSpec` nor rules are set?
--
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]