You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2026/01/09 07:50:48 UTC

(pinot) branch master updated: fix field spec sort order (#17467)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new e4625b797b2 fix field spec sort order (#17467)
e4625b797b2 is described below

commit e4625b797b26d2a787d31515deaa6442d513f80d
Author: Hongkun Xu <xu...@163.com>
AuthorDate: Fri Jan 9 15:50:41 2026 +0800

    fix field spec sort order (#17467)
    
    Signed-off-by: Hongkun Xu <xu...@163.com>
---
 .../pinot/core/segment/processing/utils/SegmentProcessorUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pinot-core/src/main/java/org/apache/pinot/core/segment/processing/utils/SegmentProcessorUtils.java b/pinot-core/src/main/java/org/apache/pinot/core/segment/processing/utils/SegmentProcessorUtils.java
index 02c0c97475f..e69dfdd5d5e 100644
--- a/pinot-core/src/main/java/org/apache/pinot/core/segment/processing/utils/SegmentProcessorUtils.java
+++ b/pinot-core/src/main/java/org/apache/pinot/core/segment/processing/utils/SegmentProcessorUtils.java
@@ -73,9 +73,9 @@ public final class SegmentProcessorUtils {
       }
     }
 
-    metricFieldSpecs.sort(Comparator.comparing(FieldSpec::getName));
-    fieldSpecs.addAll(nonMetricFieldSpecs);
     nonMetricFieldSpecs.sort(Comparator.comparing(FieldSpec::getName));
+    fieldSpecs.addAll(nonMetricFieldSpecs);
+    metricFieldSpecs.sort(Comparator.comparing(FieldSpec::getName));
     fieldSpecs.addAll(metricFieldSpecs);
 
     int numSortFields;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org