dave-csc commented on issue #6069:
URL: https://github.com/apache/hop/issues/6069#issuecomment-3575285863
Update here... I can confirm with a sample case that something has broken
between 2.15 and 2.16.
Need these files to test (place all the files in the `${PROJECT_HOME}`
folder and change the `.hpl.txt` extension with just `.hpl`):
-
[_test_merge_rows_injection.hpl.txt](https://github.com/user-attachments/files/23745859/_test_merge_rows_injection.hpl.txt):
the "main" or "injecting" pipeline
-
[_inj-merge-rows.hpl.txt](https://github.com/user-attachments/files/23745882/_inj-merge-rows.hpl.txt):
the "injected" pipeline
-
[sample1.txt](https://github.com/user-attachments/files/23745891/sample1.txt)
and
[sample2.txt](https://github.com/user-attachments/files/23745893/sample2.txt):
sample data with 30 rows each, 10 are identical, 10 are changed, 10 are
new/deleted
When executing the main pipeline in Hop 2.15, the expected output is
returned
([sample_compare_2.15.txt](https://github.com/user-attachments/files/23745962/sample_compare_2.15.txt)).
In Hop 2.16, instead, without changes in the main pipeline all the rows are
considered identical
([sample_compare_2.16.txt](https://github.com/user-attachments/files/23745986/sample_compare_2.16.txt)).
I also tried to remove the missing mappings, and then move the key and value
field in the new rows (see
[_test_merge_rows_injection_update.hpl.txt](https://github.com/user-attachments/files/23746019/_test_merge_rows_injection_update.hpl.txt)),
but I got the following error when executing the pipeline:
```
2025/11/25 12:35:09 - ETL metadata injection.0 - ERROR: Unexpected error
2025/11/25 12:35:09 - ETL metadata injection.0 - ERROR:
org.apache.hop.core.exception.HopException:
2025/11/25 12:35:09 - ETL metadata injection.0 - Error inject property
'KEY_FIELD' into class
org.apache.hop.pipeline.transforms.mergerows.MergeRowsMeta
2025/11/25 12:35:09 - ETL metadata injection.0 - Cannot invoke
"org.apache.hop.core.RowMetaAndData.getString(String, String)" because "data"
is null
2025/11/25 12:35:09 - ETL metadata injection.0 -
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.core.injection.bean.BeanInjector.setProperty(BeanInjector.java:198)
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.pipeline.transforms.metainject.MetaInject.newInjectionConstants(MetaInject.java:486)
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.pipeline.transforms.metainject.MetaInject.processRow(MetaInject.java:135)
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2025/11/25 12:35:09 - ETL metadata injection.0 - at
java.base/java.lang.Thread.run(Thread.java:833)
2025/11/25 12:35:09 - ETL metadata injection.0 - Caused by:
java.lang.NullPointerException: Cannot invoke
"org.apache.hop.core.RowMetaAndData.getString(String, String)" because "data"
is null
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.core.injection.bean.BeanInjector.setProperty(BeanInjector.java:261)
2025/11/25 12:35:09 - ETL metadata injection.0 - at
org.apache.hop.core.injection.bean.BeanInjector.setProperty(BeanInjector.java:190)
2025/11/25 12:35:09 - ETL metadata injection.0 - ... 4 more
2025/11/25 12:35:09 - ETL metadata injection.0 - Finished processing (I=0,
O=0, R=6, W=0, U=0, E=1)
```
Hope this helps for the resolution :)
--
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]