GitHub user ftoresan opened a pull request:

    https://github.com/apache/camel/pull/704

    Stop storing the columns in the dynamic CsvMarshaller

    When the CsvMarshaller (no fixed columns) is used in a router that 
dynamically receives different (asymmetric) records from the consumer, the 
columns was always being added in a `LinkedHashSet`. This generates additional 
empty columns in the resulting csv entry.
    
    My proposal is always use the map structure, allowing the marshaller to be 
reused.   
    A new test verifies if different maps can be used using the same marshaller 
without extra columns being generated.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ftoresan/camel reset_dynamic_columns

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/704.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #704
    
----
commit d1cc001efc98506dd4de94222db996bf9490bf57
Author: Fabricio Toresan <fabricio.tore...@senior.com.br>
Date:   2015-11-30T18:42:37Z

    Changed the DynamicColumnMarshaller to always use the record map to define 
the columns. This allows the marshaller to be reused for asymmetric records.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to