-
Notifications
You must be signed in to change notification settings - Fork 344
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]: Can't inject "Group field" field in "Row denormaliser" transform #2102
Comments
.take-issue |
Bit of an annoying issue, for lists it expects data rows as it does not really know how many fields to add when using a constant. I'm leaning towards "works as intended". Though I understand the edge case when you only need 1 value |
I understand. Letting input a constant value lead to an unexpected behavior, though. |
Add support for constants on empty lists, fixes #2102
Apache Hop version?
SNAPSHOT-20221221
Java version?
openjdk version "11.0.9.1" 2020-11-04 OpenJDK Runtime Environment (build 11.0.9.1+1-post-Uos-1deb10u2) OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Uos-1deb10u2, mixed mode, sharing)
Operating system
Linux
What happened?
Injecting "Group field" with a constant value in "Row denormaliser" transform has no effect and the group is missing in the injected transform.
Workaround: define the group in a field (e.g. in a "Add constants" transform) and select that in the metadata injection transform.
(Migrated from https://issues.apache.org/jira/browse/HOP-3860)
injection.zip
The attached pipeline
denormalizer_template.hpl
containing a "Row denormaliser" is injected in the two ways:inject_denormalizer_not_working.hpl
produceinjected_denormalizer_no_group.hpl
inject_denormalizer_working.hpl
produceinjected_denormalizer_with_group.hpl
Obtained (output of injected_denormalizer_no_group.hpl):
Espected (output of injected_denormalizer_with_group.hpl):
Issue Priority
Priority: 3
Issue Component
Component: Metadata
The text was updated successfully, but these errors were encountered: