-
Notifications
You must be signed in to change notification settings - Fork 181
[Calcite Engine] Only enable fallback for tests that need to fall back #3544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Heng Qian <qianheng@amazon.com>
3252aaa to
568bc22
Compare
| } | ||
|
|
||
| public static void withFallbackEnabled(Runnable f, String msg) throws IOException { | ||
| System.out.printf("Need fallback to v2 due to %s%n", msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is sysout the preferred way to log in test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG should be better, will change to use LOG.info.
|
|
||
| import org.opensearch.sql.ppl.WhereCommandIT; | ||
|
|
||
| public class CalciteWhereCommandIT extends WhereCommandIT { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR unify CalciteIT with NonFallbackCalciteIT together, and override tests with fallback for those we've previous ignored in NonFallbackCalcite*IT
Why does this PR only delete one IT file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will migrate others if this approach is acceptable
Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: Heng Qian <qianheng@amazon.com>
#3544) * [Calcite Engine] Only enable fallback for tests that need to fall back Signed-off-by: Heng Qian <qianheng@amazon.com> * Address comments Signed-off-by: Heng Qian <qianheng@amazon.com> * Migrate all calcite remote IT and fix incorrectly ignored test Signed-off-by: Heng Qian <qianheng@amazon.com> * Follow the previous action to ignore prometheus test Signed-off-by: Heng Qian <qianheng@amazon.com> --------- Signed-off-by: Heng Qian <qianheng@amazon.com> Signed-off-by: xinyual <xinyual@amazon.com>
Description
This PR aims to refactoring the current Calcite remote IT. It has drawbacks:
This PR unify Calcite*IT with NonFallbackCalcite*IT together, and override tests with fallback for those we've previous ignored in NonFallbackCalcite*IT
And this PR will also fix the cases where some test/suite have been ignored incorrectly.
Resolves #3546
Check List
--signoff.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.