-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat(isthmus): support for SQL expressions in CLI #209
Conversation
Co-authored-by: Dane Pitkin <[email protected]>
c8f7e62
to
8d0f81d
Compare
Co-authored-by: Dane Pitkin <[email protected]>
@@ -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)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this?
There was a problem hiding this comment.
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.
isthmus/src/main/java/io/substrait/isthmus/IsthmusEntryPoint.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
@davisusanibar |
Just updated, and also added a support for |
I deleted log options and added logic to handle:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @davisusanibar. LGTM!
A new issue has been created to evaluate the possibility of synchronizing the current fixed value version with the semantic release version: #223 |
@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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks David! LGTM
There was a problem hiding this 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.
isthmus/src/main/java/io/substrait/isthmus/IsthmusEntryPoint.java
Outdated
Show resolved
Hide resolved
isthmus/src/main/java/io/substrait/isthmus/SqlExpressionToSubstrait.java
Outdated
Show resolved
Hide resolved
@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. |
Thanks a lot for this kind of refinement all the time. I appreciate your assistance. |
There was a problem hiding this 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!
To close #207