We have a transform which uses this annotation:
@canonicalTransform(ignoreConversionErrors=true) to allow for uncleaned data to attempt to be assigned to the destination value and just “whatever happens, happens”.
SourceType.field1 : string is being transformed to
EntityType.fieldX : double via this expression
fieldX : ~ expression "exists(field1) ? field1: null" , we used to have a more complex expression but had to remove it due to an open issue, so the focus is on the canonicalTransform expectation.
Our understanding is that the typesystem will cast this value to the appropriate destination type, but we get the following error in our data load upload log
Error Msg: For expression: exists(field1 ) ? field1 : null; expecting result type to be double but was class java.lang.String. }
Are there are only certain primitives that this annotation is supposed to work with or something else?