You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/03/18 22:57:48 UTC
[GitHub] [pinot] Jackie-Jiang commented on a change in pull request #8364: Refactor Segment creation to use TransformPipeline too
Jackie-Jiang commented on a change in pull request #8364:
URL: https://github.com/apache/pinot/pull/8364#discussion_r830269326
##########
File path: pinot-core/src/test/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManagerTest.java
##########
@@ -58,10 +61,9 @@
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.MAX_ROWS_IN_SEGMENT;
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.MAX_TIME_FOR_SEGMENT_CLOSE_MS;
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.createSchema;
-import static org.apache.pinot.core.data.manager.realtime.Fixtures.createTableConfig;
+import static org.apache.pinot.segment.local.segment.creator.Fixtures.MAX_ROWS_IN_SEGMENT;
+import static org.apache.pinot.segment.local.segment.creator.Fixtures.MAX_TIME_FOR_SEGMENT_CLOSE_MS;
+import static org.apache.pinot.segment.local.segment.creator.Fixtures.createSchema;
Review comment:
(minor) Removing the static import (especially the function)
##########
File path: pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/TransformPipeline.java
##########
@@ -38,6 +38,10 @@
private final RecordTransformer _recordTransformer;
private final ComplexTypeTransformer _complexTypeTransformer;
+ public TransformPipeline(RecordTransformer recordTransformer, ComplexTypeTransformer complexTypeTransformer) {
Review comment:
Add some javadoc, and also annotate `complexTypeTransformer` as `Nullable`
##########
File path: pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/TransformPipeline.java
##########
@@ -38,6 +38,10 @@
private final RecordTransformer _recordTransformer;
private final ComplexTypeTransformer _complexTypeTransformer;
+ public TransformPipeline(RecordTransformer recordTransformer, ComplexTypeTransformer complexTypeTransformer) {
+ _recordTransformer = recordTransformer;
+ _complexTypeTransformer = complexTypeTransformer;
+ }
Review comment:
(minor) Add an empty line after this
##########
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'd suggest removing the static import especially on function usage though
--
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-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org