-
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
Describe Table with catalog name. #989
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #989 +/- ##
============================================
- Coverage 97.60% 95.51% -2.10%
- Complexity 3185 3224 +39
============================================
Files 308 320 +12
Lines 7983 8720 +737
Branches 520 644 +124
============================================
+ Hits 7792 8329 +537
- Misses 190 334 +144
- Partials 1 57 +56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
255b300
to
4f34e0d
Compare
prometheus/src/main/java/org/opensearch/sql/prometheus/client/PrometheusClientImpl.java
Show resolved
Hide resolved
ArrayList<String> parts = new ArrayList<>(tableQualifiedName.getParts()); | ||
parts.set(parts.size() - 1, mappingTable(parts.get(parts.size() - 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.
Sorry what does this mean? No UT changes required to cover this?
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 make comments and also include UTs.
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 it be handled by catalog resolver?
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.
yes, CatalogSchemaIdentifierNameResolver will handle this.
For
describe prometheus.requests_total command
the table name will get converted to below in the above code.
prometheus.requests_total.MAPPING_ODFE_SYS_TABLE
So that all the system tables are recognized the way it works currently.
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.
Future Design
describe prometheus.requests_total --> source = prometheus.information_schema.columns.
For information_schema, there will be a separate information_schema internal connector which can interact with all the storage engines to get column and table details.
Storage Engine will have more methods in interface to expose tables, columns, schema
bc92c1d
to
e752f96
Compare
Signed-off-by: Vamsi Manohar <[email protected]>
e752f96
to
7ec3af0
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 Manohar <[email protected]> Signed-off-by: Vamsi Manohar <[email protected]> (cherry picked from commit 40d8d9f)
Signed-off-by: vamsi-amazon <[email protected]>
Description
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.