Open enriquedelpino opened 1 week ago
Hi Enrique,
The fact that different record implementations behave differently when encountering an 'unknown' reference is an issue that we'll address by the next release. Thanks for pointing this out!
The "fuzzy" reference matching is something we'll have a closer look at, because also here consistent behaviour over every record type is desired.
Best regards, Gerald
Thank you very much for your answer, I appreciate it very much.
I have created a PR that addresses this issue I mentioned above in case you want to consider my contribution in order to address this if that actually helps you in this process.
https://github.com/RMLio/dataio/pull/8
Please, let me know your thoughts on this.
Hi all,
Us in Graph.Build have been users of your project for quite a long time already. We are working on a use case, where a mapping transformation for a CSV file expects to find a determinate field (defined by a column header), but in practicality, we cannot assume all the CSV files being transformed are complete in definition. They might have a column missing, as this column might be optional.
In these scenarios, we would like to carry on with the transformation even if it's partial, but under the current code, we see the following lines in the get method on CSVRecord, cause the whole transformation to break.
if (!this.data.containsKey(toDatabaseCase)) { throw new IllegalArgumentException(String.format("Mapping for %s not found, expected one of %s", toDatabaseCase, data.keySet())); }
We believe this code should be more resilient, log out the missing field, but still return an empty list, to avoid stopping the transformation running.
` @Override public List