Skip to content
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

[Bug]: Database Join and Database Lookup do not change the field names if duplicate #3849

Open
Hymmen opened this issue Apr 22, 2024 · 1 comment

Comments

@Hymmen
Copy link

Hymmen commented Apr 22, 2024

Apache Hop version?

2.8

Java version?

openjdk version "17.0.10" 2024-01-16

Operating system

Windows

What happened?

If a row enters one of the transforms “Database Join” and ”Database Lookup” which contains some of the same field names as are added by the transform than “show output fields” shows the duplicate fields with “_1” as field names, but the passed-on row is without the changed names, so that when you try to use the _1 name, you get something like the following error:
Eigene Ergebnisse?.0 - ERROR: Unexpected error
Eigene Ergebnisse?.0 - ERROR: org.apache.hop.core.exception.HopException:
Eigene Ergebnisse?.0 - Fields 'LOESCHPROFIL_VERSION_1' used in the condition are not found in input from previous transforms
Eigene Ergebnisse?.0 -
Eigene Ergebnisse?.0 - at org.apache.hop.pipeline.transforms.filterrows.FilterRows.checkNonExistingFields(FilterRows.java:197)
Eigene Ergebnisse?.0 - at org.apache.hop.pipeline.transforms.filterrows.FilterRows.processRow(FilterRows.java:80)
Eigene Ergebnisse?.0 - at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:55)
Eigene Ergebnisse?.0 - at java.base/java.lang.Thread.run(Thread.java:829)

The names with _1 are, in this case, selectable in “Filter Rows”, but not usable.

Issue Priority

Priority: 3

Issue Component

Component: Transforms

@Hymmen Hymmen changed the title [Bug]: Database Join and Database Lookup do not change the row names if duplicate [Bug]: Database Join and Database Lookup do not change the field names if duplicate Apr 22, 2024
@github-actions github-actions bot added P3 Nice to have Transforms labels Apr 22, 2024
@Hymmen
Copy link
Author

Hymmen commented Apr 23, 2024

The error occurs in an imported PDI transformation. If I create a minimal test version in Hop the error does not appear. The two transforms are the same in the hpl files. I cannot identify yet, why the big pipeline fails with this error and and the small pipeline works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant