-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
allow datafusion cli to take -- comments #296
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #296 +/- ##
==========================================
- Coverage 75.99% 75.98% -0.01%
==========================================
Files 141 141
Lines 23657 23659 +2
==========================================
Hits 17978 17978
- Misses 5679 5681 +2
Continue to review full report at Codecov.
|
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.
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.
Thanks @jimexist ; nice and sweet.
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.
I am wondering, can't we fix the code so comments are parsed correctly rather than skipping them?
I believe you might be able to change the code to add new lines rather than a space at the end of every line.
query.push(' ');
// To
query.push('\n');
This way we should also parse multiline comments, comments starting with a space, etc correctly.
@Dandandan thanks for the advise. i've updated the appending to use However I still think we shall skip |
Fair enough, thanks! I think at some point we should remove the |
Agreed that this is a compromise - at least writing multiple semicolons will still break A |
Which issue does this PR close?
Closes #297.
Rationale for this change
--
comments shall be respected in parsing command line inputWhat changes are included in this PR?
--
for both file and cli modeAre there any user-facing changes?
If there are user-facing changes then we may require documentation to be updated before approving the PR.
If there are any breaking changes to public APIs, please add the
breaking change
label.