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

feat(isthmus): support for SQL expressions in CLI #209

Conversation

davisusanibar
Copy link
Contributor

To close #207

davisusanibar and others added 26 commits October 24, 2023 12:10
@davisusanibar
Copy link
Contributor Author

This PR depend of: #206 / #191

@@ -61,20 +68,40 @@ enum OutputFormat {
// this example implements Callable, so parsing, error handling and handling user
// requests for usage help or version help can be done with one line of code.
public static void main(String... args) {
int exitCode = new CommandLine(new PlanEntryPoint()).execute(args);
logger.debug(Arrays.toString(args));
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just deleted log options, and added https://github.com/remkop/picocli/blob/main/picocli-codegen/README.adoc#213-gradle to helps us with --help and --version options.

Copy link
Contributor

@vibhatha vibhatha left a comment

Choose a reason for hiding this comment

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

@davisusanibar added a few comments.

@vibhatha
Copy link
Contributor

vibhatha commented Feb 3, 2024

@davisusanibar
nit: should we use System.out. or logger.info

@davisusanibar
Copy link
Contributor Author

Nice work! Just one more thing:

Can we update the Isthmus README with the new cli arg? https://github.com/substrait-io/substrait-java/blob/main/isthmus/README.md

Just updated, and also added a support for --help and --version options.

@davisusanibar
Copy link
Contributor Author

@davisusanibar nit: should we use System.out. or logger.info

I deleted log options and added logic to handle:

  • If any parameters were passed, a usage message would appear
  • Support for helpers --help
  • Version option support --version

Copy link
Contributor

@vibhatha vibhatha left a comment

Choose a reason for hiding this comment

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

Thanks @davisusanibar. LGTM!

@vibhatha vibhatha requested a review from vbarua February 4, 2024 04:51
@davisusanibar
Copy link
Contributor Author

A new issue has been created to evaluate the possibility of synchronizing the current fixed value version with the semantic release version: #223

@davisusanibar
Copy link
Contributor Author

@vibhatha, would it be possible for you to review this again?

A change was just made to allow passing lists of expressions and expression sequences by separator (comma by default).

Copy link
Contributor

@danepitkin danepitkin left a comment

Choose a reason for hiding this comment

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

Thanks David! LGTM

Copy link
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

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

Left some comments around using string splitting to handle multiple expressions.

@davisusanibar davisusanibar requested a review from vbarua February 5, 2024 23:37
@vbarua
Copy link
Member

vbarua commented Feb 6, 2024

@davisusanibar I had some small feedback which I decided to turn into a commit. If it looks good to you, I can squash and merge this tomorrow.

908d5e3

@davisusanibar
Copy link
Contributor Author

@davisusanibar I had some small feedback which I decided to turn into a commit. If it looks good to you, I can squash and merge this tomorrow.

908d5e3

Thanks a lot for this kind of refinement all the time. I appreciate your assistance.

Copy link
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

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

Changes look good. Thanks for working on this @davisusanibar!

@vbarua vbarua changed the title feat: expose extended expression on Isthmus graal image using PicoCLI feat(isthmus): support for SQL expressions in CLI Feb 6, 2024
@vbarua vbarua merged commit e63388d into substrait-io:main Feb 6, 2024
8 checks passed
ajegou pushed a commit to ajegou/substrait-java that referenced this pull request Mar 29, 2024
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.

[Isthmus][CLI] Expose ExtendedExpression on Isthmus graal image using PicoCLI
4 participants