Skip to content

Stop storing the columns in the dynamic CsvMarshaller #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ftoresan
Copy link

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.

…efine the columns. This allows the marshaller to be reused for asymmetric records.
asfgit pushed a commit that referenced this pull request Dec 5, 2015
@asfgit asfgit closed this in 19e63db Dec 5, 2015
phantomjinx pushed a commit to phantomjinx/camel that referenced this pull request Apr 11, 2019
CAMEL-13284: camel-box - Fix error "Did not find balanced marker at ..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant