-
Notifications
You must be signed in to change notification settings - Fork 146
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
Added possibility to change csv delimiter and csv quote character #86
Conversation
Thanks, for this; this is useful. I have reviewed 86dd42c; a few comments:
|
Thank you for your review and comments [1] http://www.gnu.org/software/bash/manual/bashref.html#Single-Quotes |
Yes there are subtle differences between single and double quote in bash (backslash behavior, environment variable expansion, globbing). We might get to those at some point. However for now, it's sufficient that we allow both, and require each to be closed. So, |
I did updates. If they are acceptable I will squash
|
7f2a90b
to
182e176
Compare
just realized that here
You talk about the method from SqlLine => I changed to have |
182e176
to
797cb7b
Compare
Now I found a way to cope with it and added such tests as well |
As of c1bda8d this seems to work fairly well. I found a couple of bugs. First, if you set delimiter 'null', execute a query, then set delimiter ',':
Second, you can't set the delimiter to space:
|
…f quoted text, fix NPE found while review stage
797cb7b
to
340c3b1
Compare
Good catch. Thank you, I forgot that splitting firstly goes by spaces. About NPE: it looks like there is a more generic issue as null without quotes treated as null. |
Merged as 8e0061f. Thanks for the PR, @snuyanzin! |
This PR provides possibility to change csv delimiter and csv quote character. Also it fixes escaping in case of csv/tsv outputFormat. I guess it fixes #50 and partly #51
Also there is a fix for #87 as proposed in #87