leehaut commented on issue #6008:
URL: https://github.com/apache/hop/issues/6008#issuecomment-3536352384
This appears to be a bug. When multiple fields share the same name, they
should automatically be renamed with a suffix such as `_1 `(e.g., `name`,
`name_1`). Currently, the `_1` suffix is not being applied, which seems to be
an issue in` RowMeta`.
```java
public void addValueMeta(int index, IValueMeta meta) {
if (meta != null) {
lock.writeLock().lock();
try {
IValueMeta newMeta;
Integer existsIdx = cache.findAndCompare(meta.getName(),
valueMetaList);
if (existsIdx == null) {
newMeta = meta;
} else {
newMeta = renameValueMetaIfInRow(meta, null);
}
valueMetaList.add(index, newMeta);
// ==> The cache used to check for duplicate fields was cleared ?
cache.invalidate();
needRealClone = null;
} finally {
lock.writeLock().unlock();
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]