-
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
Catalog Enhancements #988
Catalog Enhancements #988
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #988 +/- ##
=============================================
- Coverage 97.60% 62.76% -34.85%
=============================================
Files 308 10 -298
Lines 7983 658 -7325
Branches 520 119 -401
=============================================
- Hits 7792 413 -7379
- Misses 190 192 +2
- Partials 1 53 +52
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
62e24b6
to
bf25d4c
Compare
52c3ee6
to
e5662ee
Compare
@@ -36,6 +36,8 @@ The query start with search command and then flowing a set of command delimited | |||
|
|||
- `Catalog Settings <admin/catalog.rst>`_ | |||
|
|||
- `Prometheus Connector <admin/prometheus_connector.rst>`_ |
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.
The connector doc seems not dependent on language. Is it better we add it to a new Connector category/folder shared by both SQL and PPL doc?
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.
+1
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 be addressed in a new PR.
plugin/src/main/java/org/opensearch/sql/plugin/catalog/CatalogServiceImpl.java
Outdated
Show resolved
Hide resolved
prometheus/src/main/java/org/opensearch/sql/prometheus/storage/PrometheusStorageFactory.java
Show resolved
Hide resolved
prometheus/src/main/java/org/opensearch/sql/prometheus/storage/PrometheusStorageFactory.java
Outdated
Show resolved
Hide resolved
prometheus/src/main/java/org/opensearch/sql/prometheus/storage/PrometheusStorageFactory.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/catalog/CatalogServiceImpl.java
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/catalog/CatalogServiceImpl.java
Show resolved
Hide resolved
break; | ||
return connectorTypeStorageEngineFactoryMap | ||
.get(catalog.getConnector()) | ||
.getStorageEngine(catalog.getName(), catalog.getProperties()); |
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.
We may lazy eveluate the getStorageEngine when Catalog.getStorageEngine is called. The benfit is that the failure of storageEngine construction will impact requet, but not impact Plugin itself.
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 am catching throwable here, this will make sure plugin construction won't get impacted.
Understood the concern that customer isn't properly communicated when catalog is misconfigured.
Will try to address the lazy evaluation in the coming release.
prometheus/src/main/java/org/opensearch/sql/prometheus/storage/PrometheusStorageFactory.java
Show resolved
Hide resolved
prometheus/src/main/java/org/opensearch/sql/prometheus/storage/PrometheusStorageFactory.java
Outdated
Show resolved
Hide resolved
2fa34ef
to
35dc8f4
Compare
37efead
to
4f77382
Compare
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.
LGTM
Signed-off-by: vamsi-amazon <reddyvam@amazon.com> Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
4f77382
to
ba8fba8
Compare
Signed-off-by: vamsi-amazon <reddyvam@amazon.com> (cherry picked from commit c230532)
Signed-off-by: vamsi-amazon reddyvam@amazon.com
Description
Issues Resolved
#940
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.