Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
RenameProperty causes adding extra columns to fail #461
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.
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
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