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

OpenSearch Migration for SQL/PPL #2

Merged
merged 8 commits into from
Apr 16, 2021
Merged

OpenSearch Migration for SQL/PPL #2

merged 8 commits into from
Apr 16, 2021

Conversation

dai-chen
Copy link
Collaborator

@dai-chen dai-chen commented Apr 8, 2021

Issue #, if available:

Description of changes: If nothing else miss, the only leftover is the ES doc links in source code comments and documentation. The Gradle build is failing because the secrets are not added to Github env yet

1.Changing to OpenSearch Dependencies

  • build.gradle
    • Plugin version → 1.15.0
    • Add private Maven S3 repo -> 1.13.0.0-Snapshot
    • Replace all org.elasticsearch, ElasticsearchException
    • Organize imports to pass checkstyle

2.Renaming to OpenSearch

  • Module names: elasticsearch
  • Class names
    • ElasticsearchXXX
    • ESXXX
  • Package names
    • ODFE [no changes]
    • xxx.sql.elasticsearch
  • Source code
    • Elasticsearch in comments
    • ES, Es, es in variable/function name
    • ES doc link
  • ANTLR
    • grammar
  • Config files
    • plugin-descriptor.xml
    • plugin.config
    • elasticsearch.yml
  • Test data
    • Explain JSON file
    • Test index name
  • Documentation
    • README
    • User manual

3.Renaming to OpenSearch Dashboards

4.Testing

  • Checkstyle
  • Pass UT
  • Pass IT
  • Comparison test (Rerun after JDBC migrated)
  • Doctest (Rerun after CLI migrated)
  • GitHub action

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

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Two more typo-s.

build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
@dai-chen dai-chen self-assigned this Apr 12, 2021
@dai-chen dai-chen marked this pull request as ready for review April 14, 2021 22:28
docs/developing.rst Outdated Show resolved Hide resolved
Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

I also see some other ES/Elasticsearch under docs didn't change, are they in scope for renaming? If so you can try running something like rg -e '\bE[Ss]\b' -e '(?<!for|for-|for )Elasticsearch' --pcre2 -g 'docs/**' to get a list

docs/user/beyond/partiql.rst Outdated Show resolved Hide resolved
@dai-chen
Copy link
Collaborator Author

I also see some other ES/Elasticsearch under docs didn't change, are they in scope for renaming? If so you can try running something like rg -e '\bE[Ss]\b' -e '(?<!for|for-|for )Elasticsearch' --pcre2 -g 'docs/**' to get a list

Thanks for the command. Double checked only ES-SQL and Elasticsearch proprietary remain on purpose.

Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

LGTM

README.md Outdated Show resolved Hide resolved
@dai-chen dai-chen merged commit efde457 into develop Apr 16, 2021
@dai-chen dai-chen deleted the opensearch/sql-ppl branch April 26, 2021 18:11
joshuali925 pushed a commit to joshuali925/sql that referenced this pull request Jan 4, 2022
…oor-AOS220

Added CEILING and FLOOR functions
GumpacG pushed a commit that referenced this pull request Aug 9, 2023
)

* # This is a combination of 9 commits.
# This is the 1st commit message:

Fix create_index/create_index_with_IOException issue caused by OpenSearch PR change (#1899)

* Added setDefaultMediaType for create_index and create_index_with_IOException

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
(cherry picked from commit 7b932a7)
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Converts java doc table to proper java doc table.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs 2

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

cherry pick 60c0018

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Addressed PR comment for table format in AbstractExprValue.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from ExpressionReferenceOptimizer.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from AstDSL.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from AstDSL.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from SelectExpressionAnalyzer.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

fixed java doc in QualifiedName.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removing checkstyle test for core and added spotless for relevant directories.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #2:

Fixing spacing around headers in ExpressionReferenceOptimizer.java SelectExpressionAnalyzer.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #3:

Fix breaking changes. Disable some flaky tests in legacy.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

(cherry picked from commit 809e656)
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #4:

Resolving merge conflicts for pre tag in java docs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #5:

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #6:

Fixed java doc spelling and improving string concatination.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #7:

improving string concatination.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #8:

Improving failure format on some functions.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

# This is the commit message #9:

spotless apply and fix of build.gradle

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* parent 496fe8e
author Mitchell Gale <Mitchell.Gale@improving.com> 1691080710 -0700
committer Mitchell Gale <Mitchell.Gale@improving.com> 1691080766 -0700

Fix create_index/create_index_with_IOException issue caused by OpenSearch PR change (#1899)

* Added setDefaultMediaType for create_index and create_index_with_IOException

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
(cherry picked from commit 7b932a7)
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Converts java doc table to proper java doc table.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs 2

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

cherry pick 60c0018

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Addressed PR comment for table format in AbstractExprValue.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from ExpressionReferenceOptimizer.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from AstDSL.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from AstDSL.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removed pre tag from SelectExpressionAnalyzer.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

fixed java doc in QualifiedName.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removing checkstyle test for core and added spotless for relevant directories.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Fixing spacing around headers in ExpressionReferenceOptimizer.java SelectExpressionAnalyzer.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Fix breaking changes. Disable some flaky tests in legacy.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

(cherry picked from commit 809e656)
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Fixed java doc spelling and improving string concatination.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

improving string concatination.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Improving failure format on some functions.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

spotless apply and fix of build.gradle

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Resolving merge conflicts for pre tag in java docs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

running spotless check on newly pre tagged javadocs.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Converts java doc table to proper java doc table.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

Removing unused import in OpenSearchRestClientTest.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* running spotless apply.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Addressed comments in PR 5.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Yury-Fridlyand pushed a commit that referenced this pull request Aug 9, 2023
)

* Applied spotless changes to `core/stc/main/.../expression` and more.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Applied all spotless for PR 2 for GJF

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Apply spotless to fix custom fixes.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Remove unused <br>

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* ignoring core checkstyle failures.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* addressed PR comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Addressing PR 2 comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Ran spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Yury-Fridlyand pushed a commit that referenced this pull request Aug 9, 2023
)

* GJF part 4

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* add build.gradle comment to mention why we are ignoring checkstyle failures for core.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Fix include spotless build gradle.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert astDSL.JAVA

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert ast changes as was covered in spotless #1 PR for GJF.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Reverting commits in ast folder attempt #2

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert change to RaretopN.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* addressed PR comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Replacing removed include in spotless.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
acarbonetto pushed a commit that referenced this pull request Aug 22, 2023
…in files #4 #1933 (#1995)

* [Spotless] Applying Google Code Format for core/src/main files #4  (#1933)

* GJF part 4

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* add build.gradle comment to mention why we are ignoring checkstyle failures for core.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Fix include spotless build gradle.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert astDSL.JAVA

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert ast changes as was covered in spotless #1 PR for GJF.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Reverting commits in ast folder attempt #2

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* revert change to RaretopN.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* addressed PR comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Replacing removed include in spotless.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

* spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* addressed PR comments

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* remove pitest

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Yury-Fridlyand pushed a commit that referenced this pull request Aug 22, 2023
…in files #2 #1931 (#1993)

* [Spotless] Applying Google Code Format for core/src/main files #2 (#1931)

* Applied spotless changes to `core/stc/main/.../expression` and more.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Applied all spotless for PR 2 for GJF

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Apply spotless to fix custom fixes.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Remove unused <br>

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* ignoring core checkstyle failures.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* addressed PR comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Addressing PR 2 comments.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Ran spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

* spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* address pr comments

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
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