Caching conflict when creating CSV schemas with different views for the same POJO
See original GitHub issue#195 added csv schema creation with views. Using the same CsvMapper with the same POJO for different views leads to unexpected results as the used view is not considered when a schema is loaded from cache as it was registered for the pojoType. Obviously, the used view should be part of the key for the cache maps _untypedSchemas
and _typedSchemas
.
Edit: A workaround is quite simple. In order to clear the cache, just use csvmapper.copy().schemaForWithView(...)
instead of csvmapper.schemaForWithView(...)
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Parse CSV with extra columns which are not defined in POJO ...
I believe the issue is that you need to specify a specific Schema. For the Student class defined thusly: @JsonIgnoreProperties(ignoreUnknown ...
Read more >Apache Beam Programming Guide
Apache Beam Programming Guide. The Beam Programming Guide is intended for Beam users who want to use the Beam SDKs to create data...
Read more >Spring Batch - Reference Documentation
Parallel processing of many different batch runs or jobs at the same time. ... These views are used by each instance of the...
Read more >Solved: When adding a .csv file as a standalone table to a...
If the CSV is used in a join to another table or layer, there is some additional schema caching that prevents the schema...
Read more >User Guide Volume 1: Teiid Designer Red Hat JBoss Data ...
Business metadata details other information about the data, such as keywords related ... views, procedures) that conflict with the objects being imported, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2.14: keeping caching simple for 2.13 patch just in case.
There isn’t a lot about contributing, just this:
https://github.com/FasterXML/jackson/blob/master/CONTRIBUTING.md
Sure, I can try to find some time. Should I create a PR based on
2.13
or2.14
? Are there any contribution guide lines?