[
https://issues.apache.org/jira/browse/HIVE-14679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jianguo Tian updated HIVE-14679:
--------------------------------
Comment: was deleted
(was: I have fixed this issue, you can check the code as below:
{code:borderStyle=solid}
unquotedCsvPreference = new CsvPreference.Builder('\u0020', separator,
"").surroundingSpacesNeedQuotes(true).build();
{code}
And accordingto the API of *CsvPreference.Builder*, method
*surroundingSpacesNeedQuotes*'s parameter is "indicating whether spaces at the
beginning or end of a cell should be ignored if they're not surrounded by
quotes".
)
> 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
> Attachments: HIVE-14769.1.patch
>
>
> 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)