-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Backport to 2.x]Catalog to Datasource changes (#1027) #1049
Conversation
Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit 3e30379)
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.
should 2.4 be merged into 2.x?
Yes, But I am not sure if there are any pending PRs which are not merged into 2.x |
This is the only one I could find. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #1049 +/- ##
============================================
- Coverage 98.21% 95.80% -2.42%
- Complexity 3268 3410 +142
============================================
Files 314 336 +22
Lines 8197 9326 +1129
Branches 533 700 +167
============================================
+ Hits 8051 8935 +884
- Misses 142 334 +192
- Partials 4 57 +53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ok i checked the other missing one is #1050, should be good |
@@ -231,7 +231,7 @@ tableName = ``http_requests_total``. | |||
2. ``logs.12.13.1`` | |||
|
|||
|
|||
catalogName = ``@opensearch`` [Resolves to default @opensearch connector since [my_prometheus] is the only catalog configured name.] | |||
datasourceName = ``@opensearch`` [Resolves to default @opensearch connector since [my_prometheus] is the only catalog configured name.] |
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.
missed one here ...
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 is a backport PR can't do much. This is a good catch will fix it in coming PR.
The idea of this PR is to remove only public references[Documentation and show catlalogs command only] as it was done on the last day of release.
All the references in the implementation will be removed in a new PR.
|
||
schemaName = ``default`` [No supported schema found, so default to `default`]. | ||
|
||
tableName = ``prometheus.http_requests_total``. | ||
|
||
5. ``prometheus.default.http_requests_total.1.2.3`` | ||
|
||
catalogName = ``@opensearch`` [Resolves to default @opensearch connector since [my_prometheus] is the only catalog configured name.] | ||
datasourceName = ``@opensearch`` [Resolves to default @opensearch connector since [my_prometheus] is the only catalog configured name.] |
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.
missed one here
@@ -104,7 +104,7 @@ String mlCommonsPlugin = 'opensearch-ml' | |||
|
|||
testClusters { | |||
docTestCluster { | |||
keystore 'plugins.query.federation.catalog.config', new File("$projectDir/catalog", 'catalog.json') | |||
keystore 'plugins.query.federation.datasources.config', new File("$projectDir/catalog", 'catalog.json') |
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.
why not change the json file name also into datasource.json ?
@@ -20,25 +20,25 @@ public class ShowCatalogsCommandIT extends PPLIntegTestCase { | |||
|
|||
@Test | |||
public void testShowCatalogsCommands() throws IOException { |
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.
should be testShowDatasourcesCommands()...
verifyDataRows(result, | ||
rows("my_prometheus", "PROMETHEUS"), | ||
rows("@opensearch", "OPENSEARCH")); | ||
verifyColumn( | ||
result, | ||
columnName("CATALOG_NAME"), | ||
columnName("DATASOURCE_NAME"), | ||
columnName("CONNECTOR_TYPE") | ||
); | ||
} | ||
|
||
@Test | ||
public void testShowCatalogsCommandsWithWhereClause() throws IOException { |
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.
change test name here also...
@@ -111,7 +111,7 @@ testClusters.all { | |||
|
|||
testClusters.integTest { | |||
plugin ":opensearch-sql-plugin" | |||
keystore 'plugins.query.federation.catalog.config', new File("$projectDir/src/test/resources/catalog/", 'catalog.json') | |||
keystore 'plugins.query.federation.datasources.config', new File("$projectDir/src/test/resources/catalog/", 'catalog.json') |
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.
can the catalog.json also be changed into datasource.json ?
* Fix `FLOAT` -> `DOUBLE` cast. (#1025) Signed-off-by: Yury-Fridlyand <[email protected]> * Fix error messaging from prometheus. (#1029) (#1037) Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit 4a9cef3) Co-authored-by: vamsi-amazon <[email protected]> * Add `query` function as alternate syntax to `query_string` function (#1010) This maintains backwards compatibility with the v1 engine. * Update DATE and TIME functions to parse string input as datetime (#991) Add option to accept datetime like string in both TIME and DATE (eg. accept "1999-01-02 12:12:12" for both TIME and DATE. Strict check on date for testing for valid dates (eg. Don't accept Feb 30th as a valid date) and throws a SemanticCheckException. Co-authored-by: Yury-Fridlyand <[email protected]> Signed-off-by: MitchellGale-BitQuill <[email protected]> * back quote fix (#1041) (#1050) Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit d3bb902) Co-authored-by: vamsi-amazon <[email protected]> * Catalog to Datasource changes (#1027) (#1049) Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit 3e30379) * Bump jackson to 2.14.0 (#1058) Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit 5a1adb2) * Add valueOf() to Expression (#1055) Signed-off-by: Joshua Li <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: MitchellGale-BitQuill <[email protected]> Signed-off-by: Joshua Li <[email protected]> Signed-off-by: Chen Dai <[email protected]> Co-authored-by: Yury-Fridlyand <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: vamsi-amazon <[email protected]> Co-authored-by: GabeFernandez310 <[email protected]> Co-authored-by: MitchellGale-BitQuill <[email protected]> Co-authored-by: Joshua Li <[email protected]>
Signed-off-by: vamsi-amazon [email protected]
(cherry picked from commit 3e30379)
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
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.