[ 
https://issues.apache.org/jira/browse/HIVE-14679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15584702#comment-15584702
 ] 

Jianguo Tian edited comment on HIVE-14679 at 10/18/16 7:13 AM:
---------------------------------------------------------------

Hi, Kenneth MacArthur. It looks difficult to implement "there should simply be 
no quote character at all when quoting is disabled". As we can see from the 
below code, the first parameter of *Builder* method is a character, but 
unfortunately we can't implement an empty character in java as *""* in String.
{code:borderStyle=solid}
unquotedCsvPreference = new CsvPreference.Builder('\0', separator, "").build();
{code}
How do you think about this above?


was (Author: jonnyr):
Hi, [~Kenneth MacArthur]. It looks difficult to implement "there should simply 
be no quote character at all when quoting is disabled". As we can see from the 
below code, the first parameter of *Builder* method is a character, but 
unfortunately we can't implement an empty character in java as *""* in String.
{code:borderStyle=solid}
unquotedCsvPreference = new CsvPreference.Builder('\0', separator, "").build();
{code}
How do you think about this above?

> csv2/tsv2 output format disables quoting by default and it's difficult to 
> enable
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-14679
>                 URL: https://issues.apache.org/jira/browse/HIVE-14679
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Brock Noland
>            Assignee: Jianguo Tian
>
> Over in HIVE-9788 we made quoting optional for csv2/tsv2.
> However I see the following issues:
> * JIRA doc doesn't mention it's disabled by default, this should be there an 
> in the output of beeline help.
> * The JIRA says the property is {{--disableQuotingForSV}} but it's actually a 
> system property. We should not use a system property as it's non-standard so 
> extremely hard for users to set. For example I must do: {{env 
> HADOOP_CLIENT_OPTS="-Ddisable.quoting.for.sv=false" beeline ...}}
> * The arg {{--disableQuotingForSV}} should be documented in beeline help.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to