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] [discover] undefined datasource fix for index patterns for PPL and SQL #8028

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 06816d5 from #8027.

…#8027)

Deconstructing the dataSource caused an exception when no dataSource was set with the query. This can be the case with index patterns that are created and pointed to the default. Most times the default is the local cluster so there is no data source object in the query the case of the local.

Accessing by dot notation with null operator fixes this issue. Adding tests to prevent this happening again.

With query enhancements enabled we should considered ensuring index patterns always have a datasource object in the query.

Signed-off-by: Kawika Avilla <[email protected]>
(cherry picked from commit 06816d5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Sep 5, 2024

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

@github-actions github-actions bot added failed changeset and removed Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry labels Sep 5, 2024
@kavilla kavilla merged commit 2d8e27d into 2.x Sep 5, 2024
55 of 58 checks passed
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.66%. Comparing base (3f2d867) to head (8da980a).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #8028      +/-   ##
==========================================
+ Coverage   60.65%   60.66%   +0.01%     
==========================================
  Files        3731     3731              
  Lines       88420    88420              
  Branches    13690    13690              
==========================================
+ Hits        53632    53641       +9     
+ Misses      31536    31521      -15     
- Partials     3252     3258       +6     
Flag Coverage Δ
Linux_1 28.76% <ø> (ø)
Linux_2 56.38% <ø> (ø)
Linux_3 37.47% <ø> (-0.01%) ⬇️
Linux_4 ?
Windows_1 28.78% <ø> (ø)
Windows_2 56.33% <ø> (ø)
Windows_3 37.48% <ø> (ø)
Windows_4 29.77% <100.00%> (+0.02%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants