You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/03 01:54:00 UTC

[jira] [Work logged] (CSV-264) Duplicate empty header names are allowed even with `.withAllowDuplicateHeaderNames(false)`

     [ https://issues.apache.org/jira/browse/CSV-264?focusedWorklogId=546806&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-546806 ]

ASF GitHub Bot logged work on CSV-264:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Feb/21 01:53
            Start Date: 03/Feb/21 01:53
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #114:
URL: https://github.com/apache/commons-csv/pull/114#issuecomment-702969045


   
   [![Coverage Status](https://coveralls.io/builds/36798850/badge)](https://coveralls.io/builds/36798850)
   
   Coverage increased (+0.02%) to 98.469% when pulling **b2e67292fd1042c7eb1196ba2133ba6bb7a1ee11 on SethFalco:CSV-264** into **bf2f8093a49a3432be62e9fdae073e82ac78bd04 on apache:master**.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 546806)
    Time Spent: 2h 20m  (was: 2h 10m)

> Duplicate empty header names are allowed even with `.withAllowDuplicateHeaderNames(false)`
> ------------------------------------------------------------------------------------------
>
>                 Key: CSV-264
>                 URL: https://issues.apache.org/jira/browse/CSV-264
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.8
>            Reporter: Sagar Tiwari
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> I'm trying to parse to parse a csv like this:
>  
> {{CSVFormat.DEFAULT}}
> {{ .withHeader()}}
> {{ .withAllowDuplicateHeaderNames(false)}}
> {{ .withAllowMissingColumnNames()}}
> {{ .parse(InputStreamReader(FileInputStream(fl)))}}
>  
> One would expect this code to throw an error if the following csv is given as input:
>  
>  
> {{"","a",""}}
> {{"1","X","3"}}
> {{"3","Y","4"}}
>  
> But it doesn't, and asking for `record.get("")` gives the value from the second column. The first column is ignored.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)