-
Notifications
You must be signed in to change notification settings - Fork 147
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
[Calcite] Build integration test framework #3342
[Calcite] Build integration test framework #3342
Conversation
Signed-off-by: Lantao Jin <ltjin@amazon.com>
Signed-off-by: Lantao Jin <ltjin@amazon.com>
Signed-off-by: Lantao Jin <ltjin@amazon.com>
Current CI will still fail due to missing security policy in job-schedule plugin. cc @xinyuan Review required cc @qianheng-aws @penghuo @dai-chen |
fallbackAllowed = settings.getSettingValue(Settings.Key.CALCITE_FALLBACK_ALLOWED); | ||
} | ||
if (!fallbackAllowed) { | ||
throw e; |
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.
Shall we use listener to handle this exception?
listener.onFailure(e);
* This abstract test case provide a standalone env to run PPL query, IT extends this class could | ||
* debug the service side execution of PPL in IDE. | ||
*/ | ||
public abstract class CalcitePPLTestCase extends PPLIntegTestCase { |
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.
Just curious why do we change this name? The current name doesn't explicitly indicate that this's an integ 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.
reverted
@@ -0,0 +1,185 @@ | |||
/* | |||
* Copyright OpenSearch Contributors | |||
* SPDX-License-Identifier: Apache-2.0 |
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.
I think we should add calcite's license header after ours since we copy code from that repo.
There is similar example in
Signed-off-by: Lantao Jin <ltjin@amazon.com>
…estCase Signed-off-by: Lantao Jin <ltjin@amazon.com>
4ba78d3
into
opensearch-project:feature/calcite-engine
Thanks, merging to dev branch. |
Description
Build integration test framework, includes
plugins.calcite.enabled
andplugins.calcite.fallback.allowed
CalciteToolsHelper.java
, this class is used to create customized Connection, JavaTypeFactory, RelBuilder and RelRunnervalueForCalcite()
inExprValue
, calcite read opensearch data byvalueForCalcite()
instead ofvalue()
EnumerableIndexScanRule
to convert a CalciteLogicalTableScan to CalciteOpenSearchIndexScan`Related Issues
Resolves #3330
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.