opensearch-project / opensearch-project/sql
[DOC] Add examples of achieving coalesce in <3 versions of OS
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
What do you want to do?
- Request a change to existing documentation
- Add new documentation
- Report a technical problem with the documentation
- Other
Tell us about your request. Provide a summary of the request.
coalesce was introduced in OS 3. There is no documentation for how to coalesce fields in older versions of OS. Here is one workaround, which coalesces two status code fields -
ifnull(cast(attributes.http.response.status_code as int), ifnull(cast(attributes.http.status_code as int), -1))
Version: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
<3
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No documentation file or test is named. Locate the existing documentation for coalesce or related field expressions, then add the provided pre-OS 3 workaround as an example for combining status code fields and verify the documentation renders correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100