You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Paul Millar (Jira)" <ji...@apache.org> on 2021/12/02 08:44:00 UTC

[jira] [Created] (CSV-293) Add support for multiple null String values

Paul Millar created CSV-293:
-------------------------------

             Summary: Add support for multiple null String values
                 Key: CSV-293
                 URL: https://issues.apache.org/jira/browse/CSV-293
             Project: Commons CSV
          Issue Type: Improvement
          Components: Parser
    Affects Versions: 1.9.0
            Reporter: Paul Millar


The [CSVW namespace|https://www.w3.org/ns/csvw] provides metadata describing a CSV file.  One element of this is the ability to associate certain certain values with the {{null}} value, as recorded by the [csvw:null property|https://www.w3.org/ns/csvw#property-definitions].

This definition corresponds (broadly) to the "null String" concept (see [org.apache.commons.csv.CSVFormat#setNullString|http://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.Builder.html#setNullString-java.lang.String-]), with one noticeable difference: {{CSVFormat}} supports only a single "null String" value while CSVW, through {{csvw:null}, supports multiple Strings.

In order to fully support CSVW, it would be helpful if {{CSVFormat}} were to be updated to allow multiple null String values.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)