Set max=1 in join as default when plugins.ppl.syntax.legacy.preferred=false#5057
Conversation
…=false Signed-off-by: Lantao Jin <ltjin@amazon.com>
📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughThe changes introduce conditional default value behavior for the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
max=1 in join as default when plugins.ppl.syntax.legacy.preferred=false
Signed-off-by: Lantao Jin <ltjin@amazon.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLJoinIT.java`:
- Around line 882-928: The first query in testJoinWhenLegacyNotPreferred (the
executeQuery that sets actual) only verifies schema but not that the join
defaulted to max=1; add a data assertion after verifySchema that calls
verifyDataRows against actual to assert the returned rows reflect max=1 behavior
(use the same expected single-row-per-key results as in the second query, but
include all columns checked in schema: name, age, state, country, year, month,
occupation, salary). Locate the test method testJoinWhenLegacyNotPreferred and
the executeQuery/verifySchema calls to insert the verifyDataRows(actual, ...)
call immediately after verifySchema to validate the new default max logic.
|
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-5057-to-2.19-dev
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d31769dd37b44f8c61ee10f71fd016b8ce4d2401
# Push it to GitHub
git push --set-upstream origin backport/backport-5057-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 |
…red=false` (opensearch-project#5057) * Set max=1 in join as default when plugins.ppl.syntax.legacy.preferred=false Signed-off-by: Lantao Jin <ltjin@amazon.com> * update doc Signed-off-by: Lantao Jin <ltjin@amazon.com> --------- Signed-off-by: Lantao Jin <ltjin@amazon.com> (cherry picked from commit d31769d)
Description
For performance purpose, set
max=1in join as default whenplugins.ppl.syntax.legacy.preferred=falseRelated Issues
#5056
Check List
--signoffor-s.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.