Skip to content
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 2.x] Fix error messaging from prometheus. #1037

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 4a9cef3 from #1029

Signed-off-by: vamsi-amazon <[email protected]>
(cherry picked from commit 4a9cef3)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner November 4, 2022 18:54
@dai-chen dai-chen added the bug Something isn't working label Nov 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2022

Codecov Report

Merging #1037 (d833510) into 2.x (1a52511) will decrease coverage by 2.53%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x    #1037      +/-   ##
============================================
- Coverage     98.21%   95.68%   -2.54%     
- Complexity     3268     3326      +58     
============================================
  Files           314      334      +20     
  Lines          8197     9058     +861     
  Branches        533      672     +139     
============================================
+ Hits           8051     8667     +616     
- Misses          142      334     +192     
- Partials          4       57      +53     
Flag Coverage Δ
query-workbench 62.76% <ø> (?)
sql-engine 98.26% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ensearch/sql/ppl/utils/PPLQueryDataAnonymizer.java 100.00% <ø> (ø)
...metheus/storage/PrometheusMetricDefaultSchema.java 100.00% <ø> (ø)
...ain/java/org/opensearch/sql/analysis/Analyzer.java 100.00% <100.00%> (ø)
...sql/opensearch/response/agg/SingleValueParser.java 100.00% <100.00%> (ø)
...earch/sql/opensearch/response/agg/StatsParser.java 100.00% <100.00%> (ø)
.../opensearch/sql/opensearch/response/agg/Utils.java 100.00% <100.00%> (ø)
...java/org/opensearch/sql/ppl/parser/AstBuilder.java 100.00% <100.00%> (ø)
...ch/sql/prometheus/client/PrometheusClientImpl.java 100.00% <100.00%> (ø)
...plementation/QueryRangeFunctionImplementation.java 100.00% <100.00%> (ø)
...us/planner/logical/PrometheusLogicalMetricAgg.java 100.00% <100.00%> (ø)
... and 26 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@joshuali925 joshuali925 merged commit a4c7cf7 into 2.x Nov 7, 2022
@github-actions github-actions bot deleted the backport/backport-1029-to-2.x branch November 7, 2022 18:01
dai-chen added a commit that referenced this pull request Nov 9, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants