Skip to content

Update big5 ppl queries#708

Merged
rishabh6788 merged 5 commits intoopensearch-project:mainfrom
noCharger:update-big5-ppl-from-3-3
Nov 6, 2025
Merged

Update big5 ppl queries#708
rishabh6788 merged 5 commits intoopensearch-project:mainfrom
noCharger:update-big5-ppl-from-3-3

Conversation

@noCharger
Copy link
Contributor

@noCharger noCharger commented Nov 5, 2025

Description

Apply changes from opensearch-project/sql#4668 and opensearch-project/sql#4152:

  1. stats will set bucket_nullable = false to align with related DSL (since 3.3)
  2. queries can be pushed to new optimizations such as auto-date-histogram, range and multi-terms bucket aggregation. (since 3.4)
  3. Add missing big5 queries:

4.multi_terms_keyword.ppl should add head 10
5. Syntax change on PPL >= 3.3.0 that match func removed and query_string syntax must be in where, as a rectification of PPL queries.
6. terms_significant_1 and terms_significant_2: correct the group-by list
7. sort_keyword*: correct the sort key

Test results


   ____                  _____                      __       ____                  __                         __
  / __ \____  ___  ____ / ___/___  ____ ___________/ /_     / __ )___  ____  _____/ /_  ____ ___  ____ ______/ /__
 / / / / __ \/ _ \/ __ \\__ \/ _ \/ __ `/ ___/ ___/ __ \   / __  / _ \/ __ \/ ___/ __ \/ __ `__ \/ __ `/ ___/ //_/
/ /_/ / /_/ /  __/ / / /__/ /  __/ /_/ / /  / /__/ / / /  / /_/ /  __/ / / / /__/ / / / / / / / / /_/ / /  / ,<
\____/ .___/\___/_/ /_/____/\___/\__,_/_/   \___/_/ /_/  /_____/\___/_/ /_/\___/_/ /_/_/ /_/ /_/\__,_/_/  /_/|_|
    /_/

[INFO] [Test Execution ID]: bc08219f-059d-43fc-a27e-be6c4163a2b3
[INFO] Executing test with workload [big5], test_procedure [ppl] and provision_config_instance ['external'] with version [3.3.2].

[WARNING] indexing_total_time is 46 ms indicating that the cluster is not in a defined clean state. Recorded index time metrics may be misleading.
Running check-cluster-health                                                   [100% done]
Running refresh-after-index                                                    [100% done]
Running force-merge                                                            [100% done]
Running refresh-after-force-merge                                              [100% done]
Running wait-until-merges-finish                                               [100% done]
Running ppl-default                                                            [100% done]
Running ppl-term                                                               [100% done]
Running ppl-range                                                              [100% done]
Running ppl-asc-sort-timestamp-can-match-shortcut                              [100% done]
Running ppl-asc-sort-timestamp-no-can-match-shortcut                           [100% done]
Running ppl-asc-sort-timestamp                                                 [100% done]
Running ppl-asc-sort-with-after-timestamp                                      [100% done]
Running ppl-composite-date-histogram-daily                                     [100% done]
Running ppl-composite-terms-keyword                                            [100% done]
Running ppl-composite-terms                                                    [100% done]
Running ppl-date-histogram-hourly-agg                                          [100% done]
Running ppl-date-histogram-minute-agg                                          [100% done]
Running ppl-desc-sort-timestamp-can-match-shortcut                             [100% done]
Running ppl-desc-sort-timestamp-no-can-match-shortcut                          [100% done]
Running ppl-desc-sort-timestamp                                                [100% done]
Running ppl-desc-sort-with-after-timestamp                                     [100% done]
Running ppl-keyword-in-range                                                   [100% done]
Running ppl-keyword-terms-low-cardinality                                      [100% done]
Running ppl-keyword-terms                                                      [100% done]
Running ppl-multi-terms-keyword                                                [100% done]
Running ppl-query-string-on-message-filtered-sorted-num                        [100% done]
Running ppl-query-string-on-message-filtered                                   [100% done]
Running ppl-query-string-on-message                                            [100% done]
Running ppl-range-auto-date-histo-with-metrics                                 [100% done]
Running ppl-range-auto-date-histo                                              [100% done]
Running ppl-cardinality-agg-high                                               [100% done]
Running ppl-cardinality-agg-high-2                                             [100% done]
Running ppl-cardinality-agg-low                                                [100% done]
Running ppl-range-agg-1                                                        [100% done]
Running ppl-range-agg-2                                                        [100% done]
Running ppl-range-field-conjunction-big-range-big-term-query                   [100% done]
Running ppl-range-field-conjunction-small-range-big-term-query                 [100% done]
Running ppl-range-field-conjunction-small-range-small-term-query               [100% done]
Running ppl-range-field-disjunction-big-range-small-term-query                 [100% done]
Running ppl-range-numeric                                                      [100% done]
Running ppl-range-with-asc-sort                                                [100% done]
Running ppl-range-with-desc-sort                                               [100% done]
Running ppl-scroll                                                             [100% done]
Running ppl-sort-keyword-can-match-shortcut                                    [100% done]
Running ppl-sort-keyword-no-can-match-shortcut                                 [100% done]
Running ppl-sort-numeric-asc-with-match                                        [100% done]
Running ppl-sort-numeric-asc                                                   [100% done]
Running ppl-sort-numeric-desc-with-match                                       [100% done]
Running ppl-sort-numeric-desc                                                  [100% done]
Running ppl-terms-significant-1                                                [100% done]
Running ppl-terms-significant-2                                                [100% done]

------------------------------------------------------
    _______             __   _____
   / ____(_)___  ____ _/ /  / ___/_________  ________
  / /_  / / __ \/ __ `/ /   \__ \/ ___/ __ \/ ___/ _ \
 / __/ / / / / / /_/ / /   ___/ / /__/ /_/ / /  /  __/
/_/   /_/_/ /_/\__,_/_/   /____/\___/\____/_/   \___/
------------------------------------------------------
            
|                                                         Metric |                                                     Task |       Value |   Unit |
|---------------------------------------------------------------:|---------------------------------------------------------:|------------:|-------:|
|                     Cumulative indexing time of primary shards |                                                          | 0.000766667 |    min |
|             Min cumulative indexing time across primary shards |                                                          |           0 |    min |
|          Median cumulative indexing time across primary shards |                                                          |           0 |    min |
|             Max cumulative indexing time across primary shards |                                                          | 0.000766667 |    min |
|            Cumulative indexing throttle time of primary shards |                                                          |           0 |    min |
|    Min cumulative indexing throttle time across primary shards |                                                          |           0 |    min |
| Median cumulative indexing throttle time across primary shards |                                                          |           0 |    min |
|    Max cumulative indexing throttle time across primary shards |                                                          |           0 |    min |
|                        Cumulative merge time of primary shards |                                                          |           0 |    min |
|                       Cumulative merge count of primary shards |                                                          |           0 |        |
|                Min cumulative merge time across primary shards |                                                          |           0 |    min |
|             Median cumulative merge time across primary shards |                                                          |           0 |    min |
|                Max cumulative merge time across primary shards |                                                          |           0 |    min |
|               Cumulative merge throttle time of primary shards |                                                          |           0 |    min |
|       Min cumulative merge throttle time across primary shards |                                                          |           0 |    min |
|    Median cumulative merge throttle time across primary shards |                                                          |           0 |    min |
|       Max cumulative merge throttle time across primary shards |                                                          |           0 |    min |
|                      Cumulative refresh time of primary shards |                                                          |     0.00095 |    min |
|                     Cumulative refresh count of primary shards |                                                          |          16 |        |
|              Min cumulative refresh time across primary shards |                                                          |           0 |    min |
|           Median cumulative refresh time across primary shards |                                                          |           0 |    min |
|              Max cumulative refresh time across primary shards |                                                          |     0.00095 |    min |
|                        Cumulative flush time of primary shards |                                                          |           0 |    min |
|                       Cumulative flush count of primary shards |                                                          |           0 |        |
|                Min cumulative flush time across primary shards |                                                          |           0 |    min |
|             Median cumulative flush time across primary shards |                                                          |           0 |    min |
|                Max cumulative flush time across primary shards |                                                          |           0 |    min |
|                                        Total Young Gen GC time |                                                          |       0.245 |      s |
|                                       Total Young Gen GC count |                                                          |          14 |        |
|                                          Total Old Gen GC time |                                                          |           0 |      s |
|                                         Total Old Gen GC count |                                                          |           0 |        |
|                                                     Store size |                                                          |     23.9567 |     GB |
|                                                  Translog size |                                                          | 2.34479e-05 |     GB |
|                                         Heap used for segments |                                                          |           0 |     MB |
|                                       Heap used for doc values |                                                          |           0 |     MB |
|                                            Heap used for terms |                                                          |           0 |     MB |
|                                            Heap used for norms |                                                          |           0 |     MB |
|                                           Heap used for points |                                                          |           0 |     MB |
|                                    Heap used for stored fields |                                                          |           0 |     MB |
|                                                  Segment count |                                                          |          35 |        |
|                                                 Min Throughput |                                 wait-until-merges-finish |      107.65 |  ops/s |
|                                                Mean Throughput |                                 wait-until-merges-finish |      107.65 |  ops/s |
|                                              Median Throughput |                                 wait-until-merges-finish |      107.65 |  ops/s |
|                                                 Max Throughput |                                 wait-until-merges-finish |      107.65 |  ops/s |
|                                       100th percentile latency |                                 wait-until-merges-finish |      8.8675 |     ms |
|                                  100th percentile service time |                                 wait-until-merges-finish |      8.8675 |     ms |
|                                                     error rate |                                 wait-until-merges-finish |           0 |      % |
|                                                 Min Throughput |                                              ppl-default |         0.5 |  ops/s |
|                                                Mean Throughput |                                              ppl-default |         0.5 |  ops/s |
|                                              Median Throughput |                                              ppl-default |         0.5 |  ops/s |
|                                                 Max Throughput |                                              ppl-default |         0.5 |  ops/s |
|                                       100th percentile latency |                                              ppl-default |     2049.58 |     ms |
|                                  100th percentile service time |                                              ppl-default |     42.8419 |     ms |
|                                                     error rate |                                              ppl-default |           0 |      % |
|                                                 Min Throughput |                                                 ppl-term |        7.69 |  ops/s |
|                                                Mean Throughput |                                                 ppl-term |        7.69 |  ops/s |
|                                              Median Throughput |                                                 ppl-term |        7.69 |  ops/s |
|                                                 Max Throughput |                                                 ppl-term |        7.69 |  ops/s |
|                                       100th percentile latency |                                                 ppl-term |     187.298 |     ms |
|                                  100th percentile service time |                                                 ppl-term |     56.8278 |     ms |
|                                                     error rate |                                                 ppl-term |           0 |      % |
|                                                 Min Throughput |                                                ppl-range |        4.44 |  ops/s |
|                                                Mean Throughput |                                                ppl-range |        4.44 |  ops/s |
|                                              Median Throughput |                                                ppl-range |        4.44 |  ops/s |
|                                                 Max Throughput |                                                ppl-range |        4.44 |  ops/s |
|                                       100th percentile latency |                                                ppl-range |     281.464 |     ms |
|                                  100th percentile service time |                                                ppl-range |      55.683 |     ms |
|                                                     error rate |                                                ppl-range |           0 |      % |
|                                                 Min Throughput |                ppl-asc-sort-timestamp-can-match-shortcut |        4.35 |  ops/s |
|                                                Mean Throughput |                ppl-asc-sort-timestamp-can-match-shortcut |        4.35 |  ops/s |
|                                              Median Throughput |                ppl-asc-sort-timestamp-can-match-shortcut |        4.35 |  ops/s |
|                                                 Max Throughput |                ppl-asc-sort-timestamp-can-match-shortcut |        4.35 |  ops/s |
|                                       100th percentile latency |                ppl-asc-sort-timestamp-can-match-shortcut |     316.866 |     ms |
|                                  100th percentile service time |                ppl-asc-sort-timestamp-can-match-shortcut |     86.2961 |     ms |
|                                                     error rate |                ppl-asc-sort-timestamp-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |             ppl-asc-sort-timestamp-no-can-match-shortcut |       13.34 |  ops/s |
|                                                Mean Throughput |             ppl-asc-sort-timestamp-no-can-match-shortcut |       13.34 |  ops/s |
|                                              Median Throughput |             ppl-asc-sort-timestamp-no-can-match-shortcut |       13.34 |  ops/s |
|                                                 Max Throughput |             ppl-asc-sort-timestamp-no-can-match-shortcut |       13.34 |  ops/s |
|                                       100th percentile latency |             ppl-asc-sort-timestamp-no-can-match-shortcut |      142.07 |     ms |
|                                  100th percentile service time |             ppl-asc-sort-timestamp-no-can-match-shortcut |     66.5071 |     ms |
|                                                     error rate |             ppl-asc-sort-timestamp-no-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |                                   ppl-asc-sort-timestamp |       20.19 |  ops/s |
|                                                Mean Throughput |                                   ppl-asc-sort-timestamp |       20.19 |  ops/s |
|                                              Median Throughput |                                   ppl-asc-sort-timestamp |       20.19 |  ops/s |
|                                                 Max Throughput |                                   ppl-asc-sort-timestamp |       20.19 |  ops/s |
|                                       100th percentile latency |                                   ppl-asc-sort-timestamp |      92.574 |     ms |
|                                  100th percentile service time |                                   ppl-asc-sort-timestamp |      42.491 |     ms |
|                                                     error rate |                                   ppl-asc-sort-timestamp |           0 |      % |
|                                                 Min Throughput |                        ppl-asc-sort-with-after-timestamp |       25.57 |  ops/s |
|                                                Mean Throughput |                        ppl-asc-sort-with-after-timestamp |       25.57 |  ops/s |
|                                              Median Throughput |                        ppl-asc-sort-with-after-timestamp |       25.57 |  ops/s |
|                                                 Max Throughput |                        ppl-asc-sort-with-after-timestamp |       25.57 |  ops/s |
|                                       100th percentile latency |                        ppl-asc-sort-with-after-timestamp |     76.2449 |     ms |
|                                  100th percentile service time |                        ppl-asc-sort-with-after-timestamp |     36.6994 |     ms |
|                                                     error rate |                        ppl-asc-sort-with-after-timestamp |           0 |      % |
|                                                 Min Throughput |                       ppl-composite-date-histogram-daily |        0.85 |  ops/s |
|                                                Mean Throughput |                       ppl-composite-date-histogram-daily |        0.85 |  ops/s |
|                                              Median Throughput |                       ppl-composite-date-histogram-daily |        0.85 |  ops/s |
|                                                 Max Throughput |                       ppl-composite-date-histogram-daily |        0.85 |  ops/s |
|                                       100th percentile latency |                       ppl-composite-date-histogram-daily |     2104.87 |     ms |
|                                  100th percentile service time |                       ppl-composite-date-histogram-daily |     922.188 |     ms |
|                                                     error rate |                       ppl-composite-date-histogram-daily |           0 |      % |
|                                                 Min Throughput |                              ppl-composite-terms-keyword |        2.08 |  ops/s |
|                                                Mean Throughput |                              ppl-composite-terms-keyword |        2.08 |  ops/s |
|                                              Median Throughput |                              ppl-composite-terms-keyword |        2.08 |  ops/s |
|                                                 Max Throughput |                              ppl-composite-terms-keyword |        2.08 |  ops/s |
|                                       100th percentile latency |                              ppl-composite-terms-keyword |      830.56 |     ms |
|                                  100th percentile service time |                              ppl-composite-terms-keyword |     349.855 |     ms |
|                                                     error rate |                              ppl-composite-terms-keyword |           0 |      % |
|                                                 Min Throughput |                                      ppl-composite-terms |        3.62 |  ops/s |
|                                                Mean Throughput |                                      ppl-composite-terms |        3.62 |  ops/s |
|                                              Median Throughput |                                      ppl-composite-terms |        3.62 |  ops/s |
|                                                 Max Throughput |                                      ppl-composite-terms |        3.62 |  ops/s |
|                                       100th percentile latency |                                      ppl-composite-terms |     538.629 |     ms |
|                                  100th percentile service time |                                      ppl-composite-terms |     262.157 |     ms |
|                                                     error rate |                                      ppl-composite-terms |           0 |      % |
|                                                 Min Throughput |                            ppl-date-histogram-hourly-agg |       12.98 |  ops/s |
|                                                Mean Throughput |                            ppl-date-histogram-hourly-agg |       12.98 |  ops/s |
|                                              Median Throughput |                            ppl-date-histogram-hourly-agg |       12.98 |  ops/s |
|                                                 Max Throughput |                            ppl-date-histogram-hourly-agg |       12.98 |  ops/s |
|                                       100th percentile latency |                            ppl-date-histogram-hourly-agg |      124.44 |     ms |
|                                  100th percentile service time |                            ppl-date-histogram-hourly-agg |      46.629 |     ms |
|                                                     error rate |                            ppl-date-histogram-hourly-agg |           0 |      % |
|                                                 Min Throughput |                            ppl-date-histogram-minute-agg |        1.85 |  ops/s |
|                                                Mean Throughput |                            ppl-date-histogram-minute-agg |        1.85 |  ops/s |
|                                              Median Throughput |                            ppl-date-histogram-minute-agg |        1.85 |  ops/s |
|                                                 Max Throughput |                            ppl-date-histogram-minute-agg |        1.85 |  ops/s |
|                                       100th percentile latency |                            ppl-date-histogram-minute-agg |     970.276 |     ms |
|                                  100th percentile service time |                            ppl-date-histogram-minute-agg |     426.658 |     ms |
|                                                     error rate |                            ppl-date-histogram-minute-agg |           0 |      % |
|                                                 Min Throughput |               ppl-desc-sort-timestamp-can-match-shortcut |        14.4 |  ops/s |
|                                                Mean Throughput |               ppl-desc-sort-timestamp-can-match-shortcut |        14.4 |  ops/s |
|                                              Median Throughput |               ppl-desc-sort-timestamp-can-match-shortcut |        14.4 |  ops/s |
|                                                 Max Throughput |               ppl-desc-sort-timestamp-can-match-shortcut |        14.4 |  ops/s |
|                                       100th percentile latency |               ppl-desc-sort-timestamp-can-match-shortcut |     129.879 |     ms |
|                                  100th percentile service time |               ppl-desc-sort-timestamp-can-match-shortcut |      59.793 |     ms |
|                                                     error rate |               ppl-desc-sort-timestamp-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |            ppl-desc-sort-timestamp-no-can-match-shortcut |       17.25 |  ops/s |
|                                                Mean Throughput |            ppl-desc-sort-timestamp-no-can-match-shortcut |       17.25 |  ops/s |
|                                              Median Throughput |            ppl-desc-sort-timestamp-no-can-match-shortcut |       17.25 |  ops/s |
|                                                 Max Throughput |            ppl-desc-sort-timestamp-no-can-match-shortcut |       17.25 |  ops/s |
|                                       100th percentile latency |            ppl-desc-sort-timestamp-no-can-match-shortcut |     108.556 |     ms |
|                                  100th percentile service time |            ppl-desc-sort-timestamp-no-can-match-shortcut |      49.832 |     ms |
|                                                     error rate |            ppl-desc-sort-timestamp-no-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |                                  ppl-desc-sort-timestamp |       28.95 |  ops/s |
|                                                Mean Throughput |                                  ppl-desc-sort-timestamp |       28.95 |  ops/s |
|                                              Median Throughput |                                  ppl-desc-sort-timestamp |       28.95 |  ops/s |
|                                                 Max Throughput |                                  ppl-desc-sort-timestamp |       28.95 |  ops/s |
|                                       100th percentile latency |                                  ppl-desc-sort-timestamp |     65.5437 |     ms |
|                                  100th percentile service time |                                  ppl-desc-sort-timestamp |      30.583 |     ms |
|                                                     error rate |                                  ppl-desc-sort-timestamp |           0 |      % |
|                                                 Min Throughput |                       ppl-desc-sort-with-after-timestamp |       30.81 |  ops/s |
|                                                Mean Throughput |                       ppl-desc-sort-with-after-timestamp |       30.81 |  ops/s |
|                                              Median Throughput |                       ppl-desc-sort-with-after-timestamp |       30.81 |  ops/s |
|                                                 Max Throughput |                       ppl-desc-sort-with-after-timestamp |       30.81 |  ops/s |
|                                       100th percentile latency |                       ppl-desc-sort-with-after-timestamp |     66.7194 |     ms |
|                                  100th percentile service time |                       ppl-desc-sort-with-after-timestamp |     33.8474 |     ms |
|                                                     error rate |                       ppl-desc-sort-with-after-timestamp |           0 |      % |
|                                                 Min Throughput |                                     ppl-keyword-in-range |        8.45 |  ops/s |
|                                                Mean Throughput |                                     ppl-keyword-in-range |        8.45 |  ops/s |
|                                              Median Throughput |                                     ppl-keyword-in-range |        8.45 |  ops/s |
|                                                 Max Throughput |                                     ppl-keyword-in-range |        8.45 |  ops/s |
|                                       100th percentile latency |                                     ppl-keyword-in-range |     220.891 |     ms |
|                                  100th percentile service time |                                     ppl-keyword-in-range |     101.883 |     ms |
|                                                     error rate |                                     ppl-keyword-in-range |           0 |      % |
|                                                 Min Throughput |                        ppl-keyword-terms-low-cardinality |        0.46 |  ops/s |
|                                                Mean Throughput |                        ppl-keyword-terms-low-cardinality |        0.46 |  ops/s |
|                                              Median Throughput |                        ppl-keyword-terms-low-cardinality |        0.46 |  ops/s |
|                                                 Max Throughput |                        ppl-keyword-terms-low-cardinality |        0.46 |  ops/s |
|                                       100th percentile latency |                        ppl-keyword-terms-low-cardinality |        3800 |     ms |
|                                  100th percentile service time |                        ppl-keyword-terms-low-cardinality |     1642.39 |     ms |
|                                                     error rate |                        ppl-keyword-terms-low-cardinality |           0 |      % |
|                                                 Min Throughput |                                        ppl-keyword-terms |        0.51 |  ops/s |
|                                                Mean Throughput |                                        ppl-keyword-terms |        0.51 |  ops/s |
|                                              Median Throughput |                                        ppl-keyword-terms |        0.51 |  ops/s |
|                                                 Max Throughput |                                        ppl-keyword-terms |        0.51 |  ops/s |
|                                       100th percentile latency |                                        ppl-keyword-terms |     3954.64 |     ms |
|                                  100th percentile service time |                                        ppl-keyword-terms |      1978.5 |     ms |
|                                                     error rate |                                        ppl-keyword-terms |           0 |      % |
|                                                 Min Throughput |                                  ppl-multi-terms-keyword |        0.99 |  ops/s |
|                                                Mean Throughput |                                  ppl-multi-terms-keyword |        0.99 |  ops/s |
|                                              Median Throughput |                                  ppl-multi-terms-keyword |        0.99 |  ops/s |
|                                                 Max Throughput |                                  ppl-multi-terms-keyword |        0.99 |  ops/s |
|                                       100th percentile latency |                                  ppl-multi-terms-keyword |     1841.23 |     ms |
|                                  100th percentile service time |                                  ppl-multi-terms-keyword |      827.09 |     ms |
|                                                     error rate |                                  ppl-multi-terms-keyword |           0 |      % |
|                                                 Min Throughput |          ppl-query-string-on-message-filtered-sorted-num |        6.93 |  ops/s |
|                                                Mean Throughput |          ppl-query-string-on-message-filtered-sorted-num |        6.93 |  ops/s |
|                                              Median Throughput |          ppl-query-string-on-message-filtered-sorted-num |        6.93 |  ops/s |
|                                                 Max Throughput |          ppl-query-string-on-message-filtered-sorted-num |        6.93 |  ops/s |
|                                       100th percentile latency |          ppl-query-string-on-message-filtered-sorted-num |     244.999 |     ms |
|                                  100th percentile service time |          ppl-query-string-on-message-filtered-sorted-num |     100.301 |     ms |
|                                                     error rate |          ppl-query-string-on-message-filtered-sorted-num |           0 |      % |
|                                                 Min Throughput |                     ppl-query-string-on-message-filtered |       11.29 |  ops/s |
|                                                Mean Throughput |                     ppl-query-string-on-message-filtered |       11.29 |  ops/s |
|                                              Median Throughput |                     ppl-query-string-on-message-filtered |       11.29 |  ops/s |
|                                                 Max Throughput |                     ppl-query-string-on-message-filtered |       11.29 |  ops/s |
|                                       100th percentile latency |                     ppl-query-string-on-message-filtered |     163.749 |     ms |
|                                  100th percentile service time |                     ppl-query-string-on-message-filtered |     74.5344 |     ms |
|                                                     error rate |                     ppl-query-string-on-message-filtered |           0 |      % |
|                                                 Min Throughput |                              ppl-query-string-on-message |       24.28 |  ops/s |
|                                                Mean Throughput |                              ppl-query-string-on-message |       24.28 |  ops/s |
|                                              Median Throughput |                              ppl-query-string-on-message |       24.28 |  ops/s |
|                                                 Max Throughput |                              ppl-query-string-on-message |       24.28 |  ops/s |
|                                       100th percentile latency |                              ppl-query-string-on-message |     78.1971 |     ms |
|                                  100th percentile service time |                              ppl-query-string-on-message |     36.3638 |     ms |
|                                                     error rate |                              ppl-query-string-on-message |           0 |      % |
|                                                 Min Throughput |                   ppl-range-auto-date-histo-with-metrics |        0.16 |  ops/s |
|                                                Mean Throughput |                   ppl-range-auto-date-histo-with-metrics |        0.16 |  ops/s |
|                                              Median Throughput |                   ppl-range-auto-date-histo-with-metrics |        0.16 |  ops/s |
|                                                 Max Throughput |                   ppl-range-auto-date-histo-with-metrics |        0.16 |  ops/s |
|                                       100th percentile latency |                   ppl-range-auto-date-histo-with-metrics |     11971.1 |     ms |
|                                  100th percentile service time |                   ppl-range-auto-date-histo-with-metrics |     5823.09 |     ms |
|                                                     error rate |                   ppl-range-auto-date-histo-with-metrics |           0 |      % |
|                                                 Min Throughput |                                ppl-range-auto-date-histo |        0.75 |  ops/s |
|                                                Mean Throughput |                                ppl-range-auto-date-histo |        0.75 |  ops/s |
|                                              Median Throughput |                                ppl-range-auto-date-histo |        0.75 |  ops/s |
|                                                 Max Throughput |                                ppl-range-auto-date-histo |        0.75 |  ops/s |
|                                       100th percentile latency |                                ppl-range-auto-date-histo |     2640.36 |     ms |
|                                  100th percentile service time |                                ppl-range-auto-date-histo |      1306.4 |     ms |
|                                                     error rate |                                ppl-range-auto-date-histo |           0 |      % |
|                                                 Min Throughput |                                 ppl-cardinality-agg-high |        1.28 |  ops/s |
|                                                Mean Throughput |                                 ppl-cardinality-agg-high |        1.28 |  ops/s |
|                                              Median Throughput |                                 ppl-cardinality-agg-high |        1.28 |  ops/s |
|                                                 Max Throughput |                                 ppl-cardinality-agg-high |        1.28 |  ops/s |
|                                       100th percentile latency |                                 ppl-cardinality-agg-high |     1713.63 |     ms |
|                                  100th percentile service time |                                 ppl-cardinality-agg-high |      930.12 |     ms |
|                                                     error rate |                                 ppl-cardinality-agg-high |           0 |      % |
|                                                 Min Throughput |                               ppl-cardinality-agg-high-2 |        0.08 |  ops/s |
|                                                Mean Throughput |                               ppl-cardinality-agg-high-2 |        0.08 |  ops/s |
|                                              Median Throughput |                               ppl-cardinality-agg-high-2 |        0.08 |  ops/s |
|                                                 Max Throughput |                               ppl-cardinality-agg-high-2 |        0.08 |  ops/s |
|                                       100th percentile latency |                               ppl-cardinality-agg-high-2 |       26388 |     ms |
|                                  100th percentile service time |                               ppl-cardinality-agg-high-2 |     13787.2 |     ms |
|                                                     error rate |                               ppl-cardinality-agg-high-2 |           0 |      % |
|                                                 Min Throughput |                                  ppl-cardinality-agg-low |       29.94 |  ops/s |
|                                                Mean Throughput |                                  ppl-cardinality-agg-low |       29.94 |  ops/s |
|                                              Median Throughput |                                  ppl-cardinality-agg-low |       29.94 |  ops/s |
|                                                 Max Throughput |                                  ppl-cardinality-agg-low |       29.94 |  ops/s |
|                                       100th percentile latency |                                  ppl-cardinality-agg-low |     73.0958 |     ms |
|                                  100th percentile service time |                                  ppl-cardinality-agg-low |     39.2151 |     ms |
|                                                     error rate |                                  ppl-cardinality-agg-low |           0 |      % |
|                                                 Min Throughput |                                          ppl-range-agg-1 |       43.52 |  ops/s |
|                                                Mean Throughput |                                          ppl-range-agg-1 |       43.52 |  ops/s |
|                                              Median Throughput |                                          ppl-range-agg-1 |       43.52 |  ops/s |
|                                                 Max Throughput |                                          ppl-range-agg-1 |       43.52 |  ops/s |
|                                       100th percentile latency |                                          ppl-range-agg-1 |     43.1182 |     ms |
|                                  100th percentile service time |                                          ppl-range-agg-1 |     19.6477 |     ms |
|                                                     error rate |                                          ppl-range-agg-1 |           0 |      % |
|                                                 Min Throughput |                                          ppl-range-agg-2 |       47.97 |  ops/s |
|                                                Mean Throughput |                                          ppl-range-agg-2 |       47.97 |  ops/s |
|                                              Median Throughput |                                          ppl-range-agg-2 |       47.97 |  ops/s |
|                                                 Max Throughput |                                          ppl-range-agg-2 |       47.97 |  ops/s |
|                                       100th percentile latency |                                          ppl-range-agg-2 |     37.5741 |     ms |
|                                  100th percentile service time |                                          ppl-range-agg-2 |     16.3636 |     ms |
|                                                     error rate |                                          ppl-range-agg-2 |           0 |      % |
|                                                 Min Throughput |     ppl-range-field-conjunction-big-range-big-term-query |       36.48 |  ops/s |
|                                                Mean Throughput |     ppl-range-field-conjunction-big-range-big-term-query |       36.48 |  ops/s |
|                                              Median Throughput |     ppl-range-field-conjunction-big-range-big-term-query |       36.48 |  ops/s |
|                                                 Max Throughput |     ppl-range-field-conjunction-big-range-big-term-query |       36.48 |  ops/s |
|                                       100th percentile latency |     ppl-range-field-conjunction-big-range-big-term-query |     49.9301 |     ms |
|                                  100th percentile service time |     ppl-range-field-conjunction-big-range-big-term-query |     22.1487 |     ms |
|                                                     error rate |     ppl-range-field-conjunction-big-range-big-term-query |           0 |      % |
|                                                 Min Throughput |   ppl-range-field-conjunction-small-range-big-term-query |       42.57 |  ops/s |
|                                                Mean Throughput |   ppl-range-field-conjunction-small-range-big-term-query |       42.57 |  ops/s |
|                                              Median Throughput |   ppl-range-field-conjunction-small-range-big-term-query |       42.57 |  ops/s |
|                                                 Max Throughput |   ppl-range-field-conjunction-small-range-big-term-query |       42.57 |  ops/s |
|                                       100th percentile latency |   ppl-range-field-conjunction-small-range-big-term-query |     40.2212 |     ms |
|                                  100th percentile service time |   ppl-range-field-conjunction-small-range-big-term-query |     16.3895 |     ms |
|                                                     error rate |   ppl-range-field-conjunction-small-range-big-term-query |           0 |      % |
|                                                 Min Throughput | ppl-range-field-conjunction-small-range-small-term-query |       39.55 |  ops/s |
|                                                Mean Throughput | ppl-range-field-conjunction-small-range-small-term-query |       39.55 |  ops/s |
|                                              Median Throughput | ppl-range-field-conjunction-small-range-small-term-query |       39.55 |  ops/s |
|                                                 Max Throughput | ppl-range-field-conjunction-small-range-small-term-query |       39.55 |  ops/s |
|                                       100th percentile latency | ppl-range-field-conjunction-small-range-small-term-query |     43.8776 |     ms |
|                                  100th percentile service time | ppl-range-field-conjunction-small-range-small-term-query |     18.1783 |     ms |
|                                                     error rate | ppl-range-field-conjunction-small-range-small-term-query |           0 |      % |
|                                                 Min Throughput |   ppl-range-field-disjunction-big-range-small-term-query |        43.1 |  ops/s |
|                                                Mean Throughput |   ppl-range-field-disjunction-big-range-small-term-query |        43.1 |  ops/s |
|                                              Median Throughput |   ppl-range-field-disjunction-big-range-small-term-query |        43.1 |  ops/s |
|                                                 Max Throughput |   ppl-range-field-disjunction-big-range-small-term-query |        43.1 |  ops/s |
|                                       100th percentile latency |   ppl-range-field-disjunction-big-range-small-term-query |     40.5614 |     ms |
|                                  100th percentile service time |   ppl-range-field-disjunction-big-range-small-term-query |     17.0215 |     ms |
|                                                     error rate |   ppl-range-field-disjunction-big-range-small-term-query |           0 |      % |
|                                                 Min Throughput |                                        ppl-range-numeric |       50.43 |  ops/s |
|                                                Mean Throughput |                                        ppl-range-numeric |       50.43 |  ops/s |
|                                              Median Throughput |                                        ppl-range-numeric |       50.43 |  ops/s |
|                                                 Max Throughput |                                        ppl-range-numeric |       50.43 |  ops/s |
|                                       100th percentile latency |                                        ppl-range-numeric |     37.0184 |     ms |
|                                  100th percentile service time |                                        ppl-range-numeric |     16.8278 |     ms |
|                                                     error rate |                                        ppl-range-numeric |           0 |      % |
|                                                 Min Throughput |                                  ppl-range-with-asc-sort |       24.39 |  ops/s |
|                                                Mean Throughput |                                  ppl-range-with-asc-sort |       24.39 |  ops/s |
|                                              Median Throughput |                                  ppl-range-with-asc-sort |       24.39 |  ops/s |
|                                                 Max Throughput |                                  ppl-range-with-asc-sort |       24.39 |  ops/s |
|                                       100th percentile latency |                                  ppl-range-with-asc-sort |      73.445 |     ms |
|                                  100th percentile service time |                                  ppl-range-with-asc-sort |     31.7442 |     ms |
|                                                     error rate |                                  ppl-range-with-asc-sort |           0 |      % |
|                                                 Min Throughput |                                 ppl-range-with-desc-sort |        9.76 |  ops/s |
|                                                Mean Throughput |                                 ppl-range-with-desc-sort |        9.76 |  ops/s |
|                                              Median Throughput |                                 ppl-range-with-desc-sort |        9.76 |  ops/s |
|                                                 Max Throughput |                                 ppl-range-with-desc-sort |        9.76 |  ops/s |
|                                       100th percentile latency |                                 ppl-range-with-desc-sort |     201.188 |     ms |
|                                  100th percentile service time |                                 ppl-range-with-desc-sort |      98.143 |     ms |
|                                                     error rate |                                 ppl-range-with-desc-sort |           0 |      % |
|                                                 Min Throughput |                                               ppl-scroll |        46.8 |  ops/s |
|                                                Mean Throughput |                                               ppl-scroll |        46.8 |  ops/s |
|                                              Median Throughput |                                               ppl-scroll |        46.8 |  ops/s |
|                                                 Max Throughput |                                               ppl-scroll |        46.8 |  ops/s |
|                                       100th percentile latency |                                               ppl-scroll |     38.2701 |     ms |
|                                  100th percentile service time |                                               ppl-scroll |     16.4639 |     ms |
|                                                     error rate |                                               ppl-scroll |           0 |      % |
|                                                 Min Throughput |                      ppl-sort-keyword-can-match-shortcut |       28.31 |  ops/s |
|                                                Mean Throughput |                      ppl-sort-keyword-can-match-shortcut |       28.31 |  ops/s |
|                                              Median Throughput |                      ppl-sort-keyword-can-match-shortcut |       28.31 |  ops/s |
|                                                 Max Throughput |                      ppl-sort-keyword-can-match-shortcut |       28.31 |  ops/s |
|                                       100th percentile latency |                      ppl-sort-keyword-can-match-shortcut |     70.2517 |     ms |
|                                  100th percentile service time |                      ppl-sort-keyword-can-match-shortcut |     34.2816 |     ms |
|                                                     error rate |                      ppl-sort-keyword-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |                   ppl-sort-keyword-no-can-match-shortcut |       30.23 |  ops/s |
|                                                Mean Throughput |                   ppl-sort-keyword-no-can-match-shortcut |       30.23 |  ops/s |
|                                              Median Throughput |                   ppl-sort-keyword-no-can-match-shortcut |       30.23 |  ops/s |
|                                                 Max Throughput |                   ppl-sort-keyword-no-can-match-shortcut |       30.23 |  ops/s |
|                                       100th percentile latency |                   ppl-sort-keyword-no-can-match-shortcut |     79.5934 |     ms |
|                                  100th percentile service time |                   ppl-sort-keyword-no-can-match-shortcut |     46.0718 |     ms |
|                                                     error rate |                   ppl-sort-keyword-no-can-match-shortcut |           0 |      % |
|                                                 Min Throughput |                          ppl-sort-numeric-asc-with-match |       20.81 |  ops/s |
|                                                Mean Throughput |                          ppl-sort-numeric-asc-with-match |       20.81 |  ops/s |
|                                              Median Throughput |                          ppl-sort-numeric-asc-with-match |       20.81 |  ops/s |
|                                                 Max Throughput |                          ppl-sort-numeric-asc-with-match |       20.81 |  ops/s |
|                                       100th percentile latency |                          ppl-sort-numeric-asc-with-match |     71.1392 |     ms |
|                                  100th percentile service time |                          ppl-sort-numeric-asc-with-match |     22.5495 |     ms |
|                                                     error rate |                          ppl-sort-numeric-asc-with-match |           0 |      % |
|                                                 Min Throughput |                                     ppl-sort-numeric-asc |       37.72 |  ops/s |
|                                                Mean Throughput |                                     ppl-sort-numeric-asc |       37.72 |  ops/s |
|                                              Median Throughput |                                     ppl-sort-numeric-asc |       37.72 |  ops/s |
|                                                 Max Throughput |                                     ppl-sort-numeric-asc |       37.72 |  ops/s |
|                                       100th percentile latency |                                     ppl-sort-numeric-asc |     49.2951 |     ms |
|                                  100th percentile service time |                                     ppl-sort-numeric-asc |     22.1474 |     ms |
|                                                     error rate |                                     ppl-sort-numeric-asc |           0 |      % |
|                                                 Min Throughput |                         ppl-sort-numeric-desc-with-match |       35.52 |  ops/s |
|                                                Mean Throughput |                         ppl-sort-numeric-desc-with-match |       35.52 |  ops/s |
|                                              Median Throughput |                         ppl-sort-numeric-desc-with-match |       35.52 |  ops/s |
|                                                 Max Throughput |                         ppl-sort-numeric-desc-with-match |       35.52 |  ops/s |
|                                       100th percentile latency |                         ppl-sort-numeric-desc-with-match |     52.0001 |     ms |
|                                  100th percentile service time |                         ppl-sort-numeric-desc-with-match |     23.3212 |     ms |
|                                                     error rate |                         ppl-sort-numeric-desc-with-match |           0 |      % |
|                                                 Min Throughput |                                    ppl-sort-numeric-desc |       39.32 |  ops/s |
|                                                Mean Throughput |                                    ppl-sort-numeric-desc |       39.32 |  ops/s |
|                                              Median Throughput |                                    ppl-sort-numeric-desc |       39.32 |  ops/s |
|                                                 Max Throughput |                                    ppl-sort-numeric-desc |       39.32 |  ops/s |
|                                       100th percentile latency |                                    ppl-sort-numeric-desc |     46.2073 |     ms |
|                                  100th percentile service time |                                    ppl-sort-numeric-desc |     20.3658 |     ms |
|                                                     error rate |                                    ppl-sort-numeric-desc |           0 |      % |
|                                                 Min Throughput |                                  ppl-terms-significant-1 |        2.59 |  ops/s |
|                                                Mean Throughput |                                  ppl-terms-significant-1 |        2.59 |  ops/s |
|                                              Median Throughput |                                  ppl-terms-significant-1 |        2.59 |  ops/s |
|                                                 Max Throughput |                                  ppl-terms-significant-1 |        2.59 |  ops/s |
|                                       100th percentile latency |                                  ppl-terms-significant-1 |     739.677 |     ms |
|                                  100th percentile service time |                                  ppl-terms-significant-1 |     352.523 |     ms |
|                                                     error rate |                                  ppl-terms-significant-1 |           0 |      % |
|                                                 Min Throughput |                                  ppl-terms-significant-2 |        3.49 |  ops/s |
|                                                Mean Throughput |                                  ppl-terms-significant-2 |        3.49 |  ops/s |
|                                              Median Throughput |                                  ppl-terms-significant-2 |        3.49 |  ops/s |
|                                                 Max Throughput |                                  ppl-terms-significant-2 |        3.49 |  ops/s |
|                                       100th percentile latency |                                  ppl-terms-significant-2 |     558.498 |     ms |
|                                  100th percentile service time |                                  ppl-terms-significant-2 |     271.761 |     ms |
|                                                     error rate |                                  ppl-terms-significant-2 |           0 |      % |

Backport to Branches:

  • 6
  • 7
  • 1
  • 2
  • 3

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
@noCharger noCharger marked this pull request as ready for review November 5, 2025 16:55
@penghuo
Copy link

penghuo commented Nov 5, 2025

nit, could add pr description to explain what is the change?

@IanHoang
Copy link
Collaborator

IanHoang commented Nov 5, 2025

nit, could add pr description to explain what is the change?

+1. @noCharger Please update the PR description to include high-level overview of the changes in this PR.

Please also include a test run with --test-mode enabled so that we can confirm this works E2E

Copy link
Collaborator

@IanHoang IanHoang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left couple comments

"method": "POST",
"body": {
"query": "source = {{index_name | default('big5')}} | where `@timestamp` >= '2023-01-02 00:00:00' and `@timestamp` < '2023-01-02 10:00:00' | stats count() by `process.name`, `cloud.region`, `aws.cloudwatch.log_stream` | sort - `process.name`, + `cloud.region`, + `aws.cloudwatch.log_stream` | head 10"
"query": "source = {{index_name | default('big5')}} | where `@timestamp` >= '2023-01-02 00:00:00' and `@timestamp` < '2023-01-02 10:00:00' | stats {% if distribution_version.split('.') | map('int') | list >= '3.3.0'.split('.') | map('int') | list %}bucket_nullable = false {% endif %}count() by `process.name`, `cloud.region`, `aws.cloudwatch.log_stream` | sort - `process.name`, + `cloud.region`, + `aws.cloudwatch.log_stream` | head 10"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a space between } and c?

{% endif %}count() 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the current format is correct and functional.

"method": "POST",
"body": {
"query": "source = {{index_name | default('big5')}} | stats count() as station by `aws.cloudwatch.log_stream` | sort - station | head 500"
"query": "source = {{index_name | default('big5')}} | stats {% if distribution_version.split('.') | map('int') | list >= '3.3.0'.split('.') | map('int') | list %}bucket_nullable = false {% endif %}count() as station by `aws.cloudwatch.log_stream` | sort - station | head 500"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as comment above about spacing.

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
@noCharger
Copy link
Contributor Author

nit, could add pr description to explain what is the change?

+1. @noCharger Please update the PR description to include high-level overview of the changes in this PR.

Please also include a test run with --test-mode enabled so that we can confirm this works E2E

Updated both

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
Copy link
Member

@LantaoJin LantaoJin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this PR still miss some changes in opensearch-project/sql#4668:
terms_significant_1.ppl: correct the group-by list
sort_keyword_can_match_shortcut.ppl: correct the sort key

Can you revisit 4668 again to make sure all changes except comments are included.

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
@noCharger noCharger requested a review from IanHoang November 6, 2025 15:44
"method": "POST",
"body": {
"query": "source = {{index_name | default('big5')}} match(`process.name`, 'kernel') | where `@timestamp` >= '2023-01-01 00:00:00' and `@timestamp` < '2023-01-03 00:00:00' | head 10"
"query": "source = {{index_name | default('big5')}} {% if distribution_version.split('.') | map('int') | list >= '3.3.0'.split('.') | map('int') | list %}process.name=kernel{% else %}match(`process.name`, 'kernel'){% endif %} | where `@timestamp` >= '2023-01-01 00:00:00' and `@timestamp` < '2023-01-03 00:00:00' | head 10"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this correctly, if the version is equal or greater than 3.3.0 then use process.name, else use "`process.name`" ? Would this cause existing customer queries to break when they upgrade from lower versions to 3.3.0 and above or is it backward compatible?

Copy link
Contributor Author

@noCharger noCharger Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this correctly, if the version is equal or greater than 3.3.0 then use process.name, else use "process.name" ? Would this cause existing customer queries to break when they upgrade from lower versions to 3.3.0 and above or is it backward compatible?

opensearch-project/sql#4152 corrected usage of match function

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK we are not supposed to have breaking changes in minor version updates.
@penghuo @peterzhuamazon @getsaurabh02

Copy link
Member

@peterzhuamazon peterzhuamazon Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes breaking changes is only in major release, especially API.
I think it is ok to make an API deprecated but still support until next major, but not ok to completely alter its functionalities to the point the original behavior is removed.

cc: @getsaurabh02 into the conversation here, and whether we should restore the original behavior, possibly in a patch or in 3.4.0.

Thanks.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterzhuamazon @noCharger
I don’t consider this a breaking change. The reason is that using the match function within the search command is not by design. In PPL 3.2, the documentation only describes using match within the where clause.

"method": "POST",
"body": {
"query": "source = {{index_name | default('big5')}} | stats count() as country by `aws.cloudwatch.log_stream` | sort - country | head 50"
"query": "source = {{index_name | default('big5')}} | stats {% if distribution_version.split('.') | map('int') | list >= '3.3.0'.split('.') | map('int') | list %}bucket_nullable = false {% endif %}count() as country by `aws.cloudwatch.log_stream` | sort - country | head 50"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a new param introduced in 3.3.0?

Copy link
Contributor Author

@noCharger noCharger Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, as mentioned in description section

"method": "POST",
"body": {
"query": "source = {{index_name | default('big5')}} query_string(['message'], 'monkey jackal bear') | head 10"
"query": "source = {{index_name | default('big5')}} {% if distribution_version.split('.') | map('int') | list >= '3.3.0'.split('.') | map('int') | list %}| where query_string(['message'], 'monkey jackal bear'){% else %}query_string(['message'], 'monkey jackal bear'){% endif %} | head 10"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wold queries still work in 3.3.0 without the where clause?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's also introduced from opensearch-project/sql#4152

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s not a breaking change — we never intended to support complex WHERE clauses in the search command. As documented here and here only simple filters are supported.

The earlier support for complex conditions was unintentional, resulting from the use of logicalExpression in the search command. This has been corrected in the current release, giving us a clearer distinction and roadmap for both the commands.

@noCharger Could you please reword the description? This is essentially a rectification of the benchmark workload queries.

@noCharger noCharger requested a review from rishabh6788 November 6, 2025 17:57
@rishabh6788 rishabh6788 merged commit ea2c75e into opensearch-project:main Nov 6, 2025
3 checks passed
@rishabh6788 rishabh6788 added backport 2 Backport to the "2" branch backport 3 Backport to the "3" branch labels Nov 17, 2025
@opensearch-trigger-bot
Copy link

The backport to 3 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-3 3
# Navigate to the new working tree
pushd ../.worktrees/backport-3
# Create a new branch
git switch --create backport/backport-708-to-3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ea2c75e92f68f0a8caf72233c89c442bd7d50028
# Push it to GitHub
git push --set-upstream origin backport/backport-708-to-3
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-3

Then, create a pull request where the base branch is 3 and the compare/head branch is backport/backport-708-to-3.

@opensearch-trigger-bot
Copy link

The backport to 2 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2 2
# Navigate to the new working tree
pushd ../.worktrees/backport-2
# Create a new branch
git switch --create backport/backport-708-to-2
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ea2c75e92f68f0a8caf72233c89c442bd7d50028
# Push it to GitHub
git push --set-upstream origin backport/backport-708-to-2
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2

Then, create a pull request where the base branch is 2 and the compare/head branch is backport/backport-708-to-2.

rishabh6788 pushed a commit that referenced this pull request Nov 17, 2025
* Update big5 ppl queries

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Fix json lint on s0

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Update match() and query_string() for 3.3.0 above

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Update bin on timestamp only support on 3.4.0

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Revised on Lantao's comments

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

---------

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
(cherry picked from commit ea2c75e)
rishabh6788 pushed a commit that referenced this pull request Nov 17, 2025
* Update big5 ppl queries

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Fix json lint on s0

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Update match() and query_string() for 3.3.0 above

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Update bin on timestamp only support on 3.4.0

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

* Revised on Lantao's comments

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>

---------

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
(cherry picked from commit ea2c75e)
rishabh6788 added a commit that referenced this pull request Nov 17, 2025
* Update big5 ppl queries



* Fix json lint on s0



* Update match() and query_string() for 3.3.0 above



* Update bin on timestamp only support on 3.4.0



* Revised on Lantao's comments



---------


(cherry picked from commit ea2c75e)

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
Co-authored-by: Louis Chu <lingzhichu.clz@gmail.com>
rishabh6788 added a commit that referenced this pull request Nov 17, 2025
* Update big5 ppl queries



* Fix json lint on s0



* Update match() and query_string() for 3.3.0 above



* Update bin on timestamp only support on 3.4.0



* Revised on Lantao's comments



---------


(cherry picked from commit ea2c75e)

Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
Co-authored-by: Louis Chu <lingzhichu.clz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2 Backport to the "2" branch backport 3 Backport to the "3" branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants