Skip to content

Conversation

@Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Sep 3, 2025

Description

Copying the 2.0 CLI to main

Issues Resolved

N/A

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.

* cli with sql version selection

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

* update README.md

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

* update .gitignore for saved.txt

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

* update README.md and default 3.1 sql version

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

* update README.md for build.gradle instruction

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

* get config settings from previous CLI

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

* use opensearchpy like the previous CLI for indices and checking connection

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

* update usage.gif

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

* update config handling empty string

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

* get version from sonatype and dynamically build fat jar

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

* http5 for v3+

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

* add http4 for v2 and update build.gradle to pick dependency more dynamically

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

* use datasources submodule jar locally

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

* update README.md

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

* add necessary packages

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

* add --local and --remote commands for local jars dev/test

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

* add --local and --remote commands for local jars dev/test

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

* remove -v in version to avoid confusion

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

* allow user to clone to their chosen directory

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

* update artifact v3 to v4

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

* update remote to use --branch, default main

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

* update dev guide

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

* no longer need local datasources jar

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

* update rebuild logic

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

* will need to fix datasources in maven snapshot

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

* not using wrapper for sigv4 interceptors

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

* Python 3.8 to 3.9

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

* Python 3.8 to 3.12

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

* add packages

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

* fix error handling

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

* use logback instead of sysout

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

* simplified python

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

* refactoring queryexecution and formatter

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

* use builder for client and separate functions

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

* update gradle for default build

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

* parse calcite plain dynamically

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

* refactored with dictionary maps

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

* create logs dir if doesnt exist

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

* fix test fail

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

---------

Signed-off-by: cnoramut <[email protected]>
@Swiddis
Copy link
Collaborator Author

Swiddis commented Sep 5, 2025

Need to wait for opensearch-project/sql#4219 before merging

Copy link
Contributor

Choose a reason for hiding this comment

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

@Swiddis I believe this v2 cli depends on the jars from opensearch-project/sql#3734; if the version indicated in the command does not have the corresponding submodules, it will not work; we need to close the gap before releasing it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The export PR is merged, right? What's the gap?

Copy link
Contributor

Choose a reason for hiding this comment

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

@Swiddis 1. we should not include any submodule 2. the PR only merge to feature branch not minor version

@Swiddis Swiddis merged commit da7f3f4 into main Sep 12, 2025
3 of 6 checks passed
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.

5 participants