cryptoe commented on code in PR #18233:
URL: https://github.com/apache/druid/pull/18233#discussion_r2199833206


##########
processing/src/main/java/org/apache/druid/segment/incremental/OnheapIncrementalIndex.java:
##########
@@ -143,6 +144,9 @@ private void initializeProjections(IncrementalIndexSchema 
incrementalIndexSchema
       // initialize them all with 0 rows
       AggregateProjectionMetadata.Schema schema = 
projectionSpec.toMetadataSchema();
       aggregateProjections.add(new AggregateProjectionMetadata(schema, 0));
+      if (projections.containsKey(projectionSpec.getName())) {
+        throw new IAE("Found duplicate projection name[%s].", 
projectionSpec.getName());

Review Comment:
   Style:nit this should be a druid exception. This might be a user error so we 
might need to add a better exception message saying remove the projection and 
try to resubmit the ingestion job. 



-- 
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]

Reply via email to