You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Deepak Barr (JIRA)" <ji...@apache.org> on 2015/11/02 15:10:27 UTC

[jira] [Comment Edited] (LENS-855) Column headers are always comma-separated in the output file

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

Deepak Barr edited comment on LENS-855 at 11/2/15 2:09 PM:
-----------------------------------------------------------

No. Its not happening this way. By default, headerSerde is a CSVSerde object ( see AbstractOutputFormatter class) . The default separator character in CSVSerde is ",". 
One easy way to solve would be override the separator character when initializing the headerSerde -

Other way could be - Make the user write another serde,say, TSVSerde (tab-separated) and override the property - lens.query.result.output.serde


was (Author: deepak.barr):
No. Its not happening this way. By default, headerSerde is a CSVSerde object ( see AbstractOutputFormatter class) . The default separator character in CSVSerde is ",". 
One easy way to solve would be override the separator character when initializing the headerSerde -

Other way could be - Make the use write another serde,say, TSVSerde (tab-separated) and override the property - lens.query.result.output.serde

> Column headers are always comma-separated in the output file
> ------------------------------------------------------------
>
>                 Key: LENS-855
>                 URL: https://issues.apache.org/jira/browse/LENS-855
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Deepak Barr
>            Assignee: Deepak Barr
>
> An example scenario -
> If
> lens.query.output.write.header = true
> and
> lens.query.result.output.dir.format = ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
> then, the final output file (after resultset formatting) contains headers in comma-separated format and result rows in tab-separated format.



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