dongxiaoman commented on a change in pull request #8364:
URL: https://github.com/apache/pinot/pull/8364#discussion_r829506556



##########
File path: 
pinot-segment-local/src/test/java/org/apache/pinot/segment/local/segment/creator/TransformPipelineTest.java
##########
@@ -25,18 +25,16 @@
 import org.testng.Assert;
 import org.testng.annotations.Test;
 
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.*;

Review comment:
       I think this is because originally I did not use 
`Fixtures.createSchema()` in code?
   After the refactor the IntelliJ editor tries to remove this

##########
File path: 
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/Fixtures.java
##########
@@ -35,8 +33,8 @@ private Fixtures() {
   public static final int MAX_ROWS_IN_SEGMENT = 250000;
   public static final long MAX_TIME_FOR_SEGMENT_CLOSE_MS = 64368000L;
   public static final String TOPIC_NAME = "someTopic";
-  public static final String CONSUMER_FACTORY_CLASS = 
FakeStreamConsumerFactory.class.getName();
-  public static final String MESSAGE_DECODER_CLASS = 
FakeStreamMessageDecoder.class.getName();
+  public static final String CONSUMER_FACTORY_CLASS = 
"some.consumer.factory.class";
+  public static final String MESSAGE_DECODER_CLASS = 
"some.message.decoder.class";

Review comment:
       This is because I moved the classes from `pinot-core` to 
`pinot-segment-local`, and the TransformPipeline does not care about those two 
properties.
   Somehow it turns out these two are used by the tests in `pinot-core` too.
   Now I have changed the Fixtures to take two class names, so it can be 
customized properly

##########
File path: 
pinot-segment-local/src/test/java/org/apache/pinot/segment/local/segment/creator/TransformPipelineTest.java
##########
@@ -25,18 +25,16 @@
 import org.testng.Assert;
 import org.testng.annotations.Test;
 
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.*;

Review comment:
       fair enough. Changed now




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

Reply via email to