You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2012/04/12 09:24:22 UTC

[jira] [Created] (CAMEL-5166) camel-csv - Add option to skip first line when marshalling

camel-csv - Add option to skip first line when marshalling
----------------------------------------------------------

                 Key: CAMEL-5166
                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
             Project: Camel
          Issue Type: Improvement
            Reporter: Claus Ibsen
            Priority: Minor
             Fix For: 2.10.0


If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5166) camel-csv - Add option to skip first line when marshalling

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252857#comment-13252857 ] 

Christian Müller commented on CAMEL-5166:
-----------------------------------------

May this option should more flexible to define the number of lines which should be skipped.
                
> camel-csv - Add option to skip first line when marshalling
> ----------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263599#comment-13263599 ] 

Babak Vahdat commented on CAMEL-5166:
-------------------------------------

camel-bindy already provides an option with the same name (*skipFirstLine*), so that we should be fine there:

{code}
org.apache.camel.dataformat.bindy.BindyCsvFactory
{code}


                
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263583#comment-13263583 ] 

Babak Vahdat commented on CAMEL-5166:
-------------------------------------

According to the RFC-4180 there maybe *one* optional header line:

http://tools.ietf.org/html/rfc4180

{code}
There maybe an optional header line appearing as the first line
of the file with the same format as normal record lines.  This
header will contain names corresponding to the fields in the file
and should contain the same number of fields as the records in
the rest of the file (the presence or absence of the header line
should be indicated via the optional "header" parameter of this
MIME type).  For example:

field_name,field_name,field_name CRLF
aaa,bbb,ccc CRLF
zzz,yyy,xxx CRLF
{code}

So that IMHO providing "number of lines" semantics would be an unnecessary overkill.
                
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Babak Vahdat updated CAMEL-5166:
--------------------------------

    Summary: camel-csv - Add option to skip first line when unmarshalling  (was: camel-csv - Add option to skip first line when marshalling)
    
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263599#comment-13263599 ] 

Babak Vahdat edited comment on CAMEL-5166 at 4/27/12 12:28 PM:
---------------------------------------------------------------

camel-bindy already provides an option with the same name (*skipFirstLine*): http://camel.apache.org/bindy.html

And the camel-flatpack's provided option is called *ignoreFirstRecord*: http://camel.apache.org/flatpack.html

So that by those two formats we're already fine in place.
                
      was (Author: bvahdat):
    camel-bindy already provides an option with the same name (*skipFirstLine*), so that we should be fine there:

{code}
org.apache.camel.dataformat.bindy.BindyCsvFactory
{code}


                  
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Babak Vahdat resolved CAMEL-5166.
---------------------------------

    Resolution: Fixed
    
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Babak Vahdat reassigned CAMEL-5166:
-----------------------------------

    Assignee: Babak Vahdat
    
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263598#comment-13263598 ] 

Babak Vahdat commented on CAMEL-5166:
-------------------------------------

The newly provided option is called *skipFirstLine* which is provided both on Java as well as XML DSL.
                
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira