-
Notifications
You must be signed in to change notification settings - Fork 75
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
RenameProperty causes adding extra columns to fail #461
Comments
just seen that sorry for not coming back on it earlier |
what is the structure of MyPojo? |
I tried this with different structures, it doesn't seem to be related to the actual fields. It seems that rename property is applied initially one way, but when it needs to be "reapplied" (because columns are copied when a new one is added), it's not done fully and the fields are checked against original names, not against renamed ones. That's just my understanding so far, couldn't investigate in detail. In the end I only did a PoC and had to switch to a different project because of this. |
I'm just trying to understand what you where trying to do |
so just tried by assuming the prop in the object would be ts.
the rename property in that context will actually tell it what is the name in the object. timestamp does not exists so it does some speculative property mapping and link the column to the actual pojo.toString object. RenameProperty was introduce initially on the reading side and the semantic is not really clear there it should actually contains the actual property name. so if you write
it works and prints
|
I'm adding some javadoc on the RenameProperty to make that clearer. |
Indeed, looking at your example, I was applying it in the opposite direction. I had property However, in that case I'm surprised it failed on the next column, not the |
not a bad idea, no point trying to speculate when the RenameProperty should be an exact match |
Considering
MyPojo
has two fieldsts
andaction
, the following fails on the last line:The exception:
The text was updated successfully, but these errors were encountered: