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 <cnoramut@amazon.com>

* update README.md

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update .gitignore for saved.txt

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update README.md and default 3.1 sql version

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update README.md for build.gradle instruction

Signed-off-by: cnoramut <cnoramut@amazon.com>

* get config settings from previous CLI

Signed-off-by: cnoramut <cnoramut@amazon.com>

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

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update usage.gif

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update config handling empty string

Signed-off-by: cnoramut <cnoramut@amazon.com>

* get version from sonatype and dynamically build fat jar

Signed-off-by: cnoramut <cnoramut@amazon.com>

* http5 for v3+

Signed-off-by: cnoramut <cnoramut@amazon.com>

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

Signed-off-by: cnoramut <cnoramut@amazon.com>

* use datasources submodule jar locally

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update README.md

Signed-off-by: cnoramut <cnoramut@amazon.com>

* add necessary packages

Signed-off-by: cnoramut <cnoramut@amazon.com>

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

Signed-off-by: cnoramut <cnoramut@amazon.com>

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

Signed-off-by: cnoramut <cnoramut@amazon.com>

* remove -v in version to avoid confusion

Signed-off-by: cnoramut <cnoramut@amazon.com>

* allow user to clone to their chosen directory

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update artifact v3 to v4

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update remote to use --branch, default main

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update dev guide

Signed-off-by: cnoramut <cnoramut@amazon.com>

* no longer need local datasources jar

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update rebuild logic

Signed-off-by: cnoramut <cnoramut@amazon.com>

* will need to fix datasources in maven snapshot

Signed-off-by: cnoramut <cnoramut@amazon.com>

* not using wrapper for sigv4 interceptors

Signed-off-by: cnoramut <cnoramut@amazon.com>

* Python 3.8 to 3.9

Signed-off-by: cnoramut <cnoramut@amazon.com>

* Python 3.8 to 3.12

Signed-off-by: cnoramut <cnoramut@amazon.com>

* add packages

Signed-off-by: cnoramut <cnoramut@amazon.com>

* fix error handling

Signed-off-by: cnoramut <cnoramut@amazon.com>

* use logback instead of sysout

Signed-off-by: cnoramut <cnoramut@amazon.com>

* simplified python

Signed-off-by: cnoramut <cnoramut@amazon.com>

* refactoring queryexecution and formatter

Signed-off-by: cnoramut <cnoramut@amazon.com>

* use builder for client and separate functions

Signed-off-by: cnoramut <cnoramut@amazon.com>

* update gradle for default build

Signed-off-by: cnoramut <cnoramut@amazon.com>

* parse calcite plain dynamically

Signed-off-by: cnoramut <cnoramut@amazon.com>

* refactored with dictionary maps

Signed-off-by: cnoramut <cnoramut@amazon.com>

* create logs dir if doesnt exist

Signed-off-by: cnoramut <cnoramut@amazon.com>

* fix test fail

Signed-off-by: cnoramut <cnoramut@amazon.com>

---------

Signed-off-by: cnoramut <cnoramut@amazon.com>
@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