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]: DimensionLookup transform fails with hop-run #4328

Closed
nadment opened this issue Sep 18, 2024 · 1 comment · Fixed by #4329
Closed

[Bug]: DimensionLookup transform fails with hop-run #4328

nadment opened this issue Sep 18, 2024 · 1 comment · Fixed by #4329
Assignees
Labels
Milestone

Comments

@nadment
Copy link
Contributor

nadment commented Sep 18, 2024

Apache Hop version?

2.10.0-SNAPSHOT

Java version?

Java 17

Operating system

Windows

What happened?

Step to reproduce:

  1. Disabled "Update the dimension" and try to retrieve a lookup field
  2. Then execute with hop-run.

2024/08/02 13:57:46 - org.apache.hop.pipeline.transforms.dimensionlookup.DimensionLookupMeta@46dcc86 - Unable to retrieve data type of return fields because of an unexpected error
2024/08/02 13:57:46 - org.apache.hop.pipeline.transforms.dimensionlookup.DimensionLookupMeta@46dcc86 - Cannot invoke "org.apache.hop.core.row.IRowMeta.searchValueMeta(String)" because "extraFields" is null
org.apache.hop.core.exception.HopTransformException:
Lookup field [FIELD_CONFORMED] couldn't be found!
at org.apache.hop.pipeline.transforms.dimensionlookup.DimensionLookup.processRow(DimensionLookup.java:152)
at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
at java.base/java.lang.Thread.run(Unknown Source)

I didn't understand why the transformation works well with hop-gui and doesn't work with hop-run, but by cleaning up the code I found a solution so that it works in both cases.

Issue Priority

Priority: 2

Issue Component

Component: Hop Run, Component: Transforms

@nadment nadment added the bug label Sep 18, 2024
@nadment nadment added this to the 2.10 milestone Sep 18, 2024
@nadment nadment self-assigned this Sep 18, 2024
@github-actions github-actions bot added P2 Default Priority Hop Run Transforms labels Sep 18, 2024
nadment added a commit to nadment/hop that referenced this issue Sep 18, 2024
@nadment nadment linked a pull request Sep 18, 2024 that will close this issue
@nadment
Copy link
Contributor Author

nadment commented Sep 23, 2024

Possibly the same issue #3546

hansva added a commit that referenced this issue Sep 25, 2024
DimensionLookup transform fails with hop-run #4328
Adalennis pushed a commit to Adalennis/hop that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant