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

Deprecated legacy settings instead of removing #140

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

penghuo
Copy link
Collaborator

@penghuo penghuo commented Jun 23, 2021

Description

  1. Address Remove cursor enabling and fetch size setting #75, deprecated opendistro.sql.cursor.enabled and opendistro.sql.cursor.fetch_size
  2. Address remove opensearch.sql.engine.new.enabled setting #70, deprecated opendistro.sql.engine.new.enabled
  3. Address remove opensearch.sql.query.analysis.* related settings #76, deprecated opensearch.sql.query.analysis.*
  4. Address remove opensearch.sql.query.response.format setting #77, deprecated opensearch.sql.query.response.format

Upgrade Test

Before rolling upgrade, put the deprecated setting.

curl -X PUT "localhost:9200/_opendistro/_sql/settings" -H 'Content-Type: application/json' -d'
{
  "persistent" : {
      "opendistro": {
        "sql": {
          "cursor": {
            "enabled" : true,
            "keep_alive": "10m"
          }
        }
      }
  },
  "transient" : {
    "opendistro.sql.query.analysis.enabled" : false
  }
}'

After the rolling upgrade from ODFE 1.13.2 to OpenSearch 1.0, Then update the deprecated setting. The warning will returned.

➜  upgrade-test curl -i -X PUT "localhost:9200/_plugins/_query/settings" -H 'Content-Type: application/json' -d'
{
  "transient" : {
    "opendistro.sql.cursor.enabled" : "false"
  }
}'
HTTP/1.1 200 OK
Warning: 299 OpenSearch-1.0.0-26d579287f50bb33e17c8fe1f05ea208d5c64d1f "[opendistro.sql.cursor.keep_alive] setting was deprecated in OpenSearch and will be removed in a future release! See the breaking changes documentation for the next major version."
Warning: 299 OpenSearch-1.0.0-26d579287f50bb33e17c8fe1f05ea208d5c64d1f "[opendistro.sql.cursor.enabled] setting was deprecated in OpenSearch and will be removed in a future release! See the breaking changes documentation for the next major version."
content-type: application/json; charset=UTF-8
content-length: 103

{"acknowledged":true,"persistent":{},"transient":{"opendistro":{"sql":{"cursor":{"enabled":"false"}}}}}

Issues Resolved

Resolved, #136

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

@penghuo penghuo requested review from chloe-zh and dai-chen June 23, 2021 22:27
@penghuo penghuo self-assigned this Jun 23, 2021
Copy link
Contributor

@chloe-zh chloe-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@penghuo penghuo changed the title Deprecated cursor enabling and fetch size setting Deprecated legacy settings instead of removing Jun 24, 2021
Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@penghuo penghuo merged commit 51864a2 into opensearch-project:develop Jun 24, 2021
davidcui1225 added a commit that referenced this pull request Jun 26, 2021
* Support construct AggregationResponseParser during Aggregator build stage (#108)

* Support construct AggregationResponseParser during Aggregator build stage

* modify the doc

Signed-off-by: penghuo <[email protected]>

* Impl stddev and variance function in SQL and PPL (#115)

* impl variance frontend and backend

* Support construct AggregationResponseParser during Aggregator build stage

* add var and varp for PPL

Signed-off-by: penghuo <[email protected]>

* add UT

Signed-off-by: penghuo <[email protected]>

* fix UT

Signed-off-by: penghuo <[email protected]>

* fix doc format

Signed-off-by: penghuo <[email protected]>

* fix doc format

Signed-off-by: penghuo <[email protected]>

* fix the doc

Signed-off-by: penghuo <[email protected]>

* add stddev_samp and stddev_pop

Signed-off-by: penghuo <[email protected]>

* fix UT coverage

* address comments

Signed-off-by: penghuo <[email protected]>

* Fix the aggregation filter missing in named aggregators (#123)

* Take the condition expression as property to the named aggregator when wrapping the delegated aggregator

Signed-off-by: chloe-zh <[email protected]>

* update

Signed-off-by: chloe-zh <[email protected]>

* Added test case where filtered agg is not pushed down

Signed-off-by: chloe-zh <[email protected]>

* update

Signed-off-by: chloe-zh <[email protected]>

* update

Signed-off-by: chloe-zh <[email protected]>

* Rename gradle tasks in the manner of Opensearch (#133)

Signed-off-by: Zhongnan Su <[email protected]>

* add testing-library/user-event to pass CI (#141)

Signed-off-by: David Cui <[email protected]>

* Deprecated legacy settings instead of removing (#140)

* Deprecated cursor enabling and fetch size setting

Signed-off-by: penghuo <[email protected]>

* update doc

Signed-off-by: penghuo <[email protected]>

* add more deprecated settings

Signed-off-by: penghuo <[email protected]>

* Add Codecov to SQL  (#138)

* add codecov to CI workflow

Signed-off-by: David Cui <[email protected]>

* add codecov token
Signed-off-by: David Cui <[email protected]>

* Add Docs and link checker workflow (#139)

* save progress on doc renaming

* update rest of documentation links
Signed-off-by: David Cui <[email protected]>

* add workbench developer guide and update readme
Signed-off-by: David Cui <[email protected]>

* Bump glob-parent from 5.1.1 to 5.1.2 in /workbench

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](gulpjs/glob-parent@v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* add testing-library
Signed-off-by: David Cui <[email protected]>

* rename workbench artifact name to kebab case
Signed-off-by: David Cui <[email protected]>

* standardize maintainers list based on team roles, fix workbench name in dev guide
Signed-off-by: David Cui <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add links to exclude from link checker
Signed-off-by: David Cui <[email protected]>

* fix localhost exclusion flag
Signed-off-by: David Cui <[email protected]>

* add all exclusion links, revert localhost exclusion away from regex
Signed-off-by: David Cui <[email protected]>

* fix family.zzz exclusion, remove stale link from odbc sign_installers
Signed-off-by: David Cui <[email protected]>

* fix lychee workflow after local testing and replace old sign_installers url
Signed-off-by: David Cui <[email protected]>

* remove accidental duplicate exclude flag
Signed-off-by: David Cui <[email protected]>

* remove sign installers as it is out of date
Signed-off-by: David Cui <[email protected]>

Co-authored-by: Peng Huo <[email protected]>
Co-authored-by: Chloe <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Yury-Fridlyand added a commit that referenced this pull request Oct 28, 2022
Add JDBC driver jenkins CI workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants