Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Move old SQL code to legacy module #506

Merged

Conversation

dai-chen
Copy link
Member

@dai-chen dai-chen commented Jun 4, 2020

Issue #, if available: #257

Description of changes: This huge PR is to move all old SQL code at root directory to a new gradle module legacy. All legacy integration tests are moved to integ-test module. After this, we will start migrating functionalities existing in legacy code to new query engine.

Testing:

  1. ./gradlew build: pass all checkstyle, jacoco, unit test and integration test
  2. ./gradlew :integ-test:integTest -Dtests.clustername=mycluster -Dtests.cluster=127.0.0.1:9200 -Dtests.rest.cluster=127.0.0.1:9200: test all IT with local cluster at 9200 port.
  3. ./gradlew :integ-test:integTest -DtestType=doctest: run old doctest to generate SQL docs.
  4. ./gradlew :integ-test:comparisonTest -Dqueries=sanity_integration_tests.txt: run comparison test to compare with other datatbases.
  5. ./gradlew build buildDeb buildRpm --no-daemon --refresh-dependencies --console=plain -Dbuild.snapshot=false: change build command to this one in https://github.com/opendistro-for-elasticsearch/sql/blob/master/.github/workflows/release-workflow.yml.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dai-chen dai-chen added the maintenance Improves code quality, but not the product label Jun 4, 2020
@dai-chen dai-chen changed the base branch from master to develop June 4, 2020 22:51
@dai-chen dai-chen self-assigned this Jun 4, 2020
@dai-chen dai-chen marked this pull request as ready for review June 4, 2020 23:00
Copy link
Contributor

@penghuo penghuo 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 change.

Copy link
Member

@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! That's awesome, thanks for the change!

@dai-chen dai-chen merged commit 64e8562 into opendistro-for-elasticsearch:develop Jun 4, 2020
@dai-chen dai-chen deleted the add-sql-legacy-module branch June 4, 2020 23:37
@dai-chen dai-chen restored the add-sql-legacy-module branch June 5, 2020 05:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintenance Improves code quality, but not the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants