Support multisearch command in calcite#4332
Support multisearch command in calcite#4332RyanL1997 merged 38 commits intoopensearch-project:mainfrom
multisearch command in calcite#4332Conversation
core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java
Show resolved
Hide resolved
92ab992 to
5c43a2b
Compare
core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kai Huang <ahkcs@amazon.com>
| @@ -0,0 +1,200 @@ | |||
| {"index":{"_id":"1"}} | |||
There was a problem hiding this comment.
np: do we really need so many test data to demonstrate the command usage in documentation?
There was a problem hiding this comment.
I was thinking we can reuse this dataset for future doctest for timestamp
There was a problem hiding this comment.
I updated to trim the dataset to 20 records
Signed-off-by: Kai Huang <ahkcs@amazon.com>
integ-test/src/test/resources/doctest/templates/dql/metadata.rst
Outdated
Show resolved
Hide resolved
Signed-off-by: Kai Huang <ahkcs@amazon.com>
|
Do we add and benchmark Big5 query for each new command like this? |
I think we can add IT tests to benchmark Big5 queries like this, I'll open a separate PR for this: |
For |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/sql/backport-2.19-dev 2.19-dev
# Navigate to the new working tree
pushd ../.worktrees/sql/backport-2.19-dev
# Create a new branch
git switch --create backport/backport-4332-to-2.19-dev
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ca5a5bd6ee36ecdbbb2d3dc7a4b73ba28ecafa95
# Push it to GitHub
git push --set-upstream origin backport/backport-4332-to-2.19-dev
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/sql/backport-2.19-devThen, create a pull request where the |
--------- Signed-off-by: Kai Huang <ahkcs@amazon.com> (cherry picked from commit ca5a5bd)
…4431) * Support `multisearch` command in calcite (#4332) --------- Signed-off-by: Kai Huang <ahkcs@amazon.com> (cherry picked from commit ca5a5bd) * fix ExplainIT Signed-off-by: Kai Huang <ahkcs@amazon.com> * put missing file back Signed-off-by: Kai Huang <ahkcs@amazon.com> --------- Signed-off-by: Kai Huang <ahkcs@amazon.com>
* main-apple: (218 commits) Add ignorePrometheus Flag for integTest and docTest (opensearch-project#4442) Create fab-radar.yml PPL `fillnull` command enhancement (opensearch-project#4421) reverting to _doc + _id (opensearch-project#4435) Support `multisearch` command in calcite (opensearch-project#4332) Add 3.3 release notes (opensearch-project#4422) (opensearch-project#4423) [SQL/PPL] Fix the `count(*)` and `dc(field)` to be capped at MAX_INTEGER opensearch-project#4416 (opensearch-project#4418) Change the default search sort tiebreaker to `_shard_doc` for PIT search (opensearch-project#4378) [Enhancement] Add error handling for known limitation of sql `JOIN` (opensearch-project#4344) Bugfix: SQL type mapping for legacy JDBC output (opensearch-project#3613) Version bump: 3.3 (opensearch-project#4417) Add max/min eval functions (opensearch-project#4333) Support time modifiers in search command (opensearch-project#4224) Fix numbered token bug and make it optional output in patterns command (opensearch-project#4402) refactor span (opensearch-project#4334) Move release notes categories (opensearch-project#3818) [Doc] Enable doctest with Calcite (opensearch-project#4379) Mod function should return decimal instead of float when handle the operands are decimal literal (opensearch-project#4407) Scale of decimal literal should always be positive in Calcite (opensearch-project#4401) Enable Calcite by default and implicit fallback the unsupported commands (opensearch-project#4372) ...
Description
This PR introduces the multisearch command, a new PPL command that allows combining results from multiple search subsearches into a single unified result set.
Resolves: #4348
Key Features:
Example Usage: