Skip to content

Commit dc2deb8

Browse files
gpogulskygpogulsky
andauthored
feature: add table type to segment upload (#9063)
* add table type to segment upload * bumping protobug & grpc versions to compile on Apple M1 machines * correcting spacing * reverting versions for protobuf and grpc Co-authored-by: gpogulsky <[email protected]>
1 parent 9a49ab2 commit dc2deb8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/BaseSingleSegmentConversionExecutor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ public SegmentConversionResult executeTask(PinotTaskConfig pinotTaskConfig)
158158
new BasicNameValuePair(FileUploadDownloadClient.QueryParameters.ENABLE_PARALLEL_PUSH_PROTECTION, "true");
159159
NameValuePair tableNameParameter = new BasicNameValuePair(FileUploadDownloadClient.QueryParameters.TABLE_NAME,
160160
TableNameBuilder.extractRawTableName(tableNameWithType));
161-
List<NameValuePair> parameters = Arrays.asList(enableParallelPushProtectionParameter, tableNameParameter);
161+
NameValuePair tableTypeParameter = new BasicNameValuePair(FileUploadDownloadClient.QueryParameters.TABLE_TYPE,
162+
TableNameBuilder.getTableTypeFromTableName(tableNameWithType).toString());
163+
List<NameValuePair> parameters = Arrays.asList(enableParallelPushProtectionParameter, tableNameParameter,
164+
tableTypeParameter);
162165

163166
// Upload the tarred segment
164167
SegmentConversionUtils.uploadSegment(configs, httpHeaders, parameters, tableNameWithType, segmentName, uploadURL,

0 commit comments

Comments
 (0)