-
Notifications
You must be signed in to change notification settings - Fork 353
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]: Null If transform does not "nullify" empty fields #2024
Comments
Note: this is a blocker for me to move beyond 2.1 |
@campen what is the value of the variable HOP_EMPTY_STRING_DIFFERS_FROM_NULL, this could explain the difference ? |
@nadment - it is set to "Y" for both versions (2.1 and 2.2/3) - I double checked that initially as I thought it may have changed when I opened 2.2, but I am using the same config file (system env variable set), so all settings are the same no matter what version of Hop I am using. Also note that it behaves the same using Ubuntu Linux. |
If you think about it, this variable HOP_EMPTY_STRING_DIFFERS_FROM_NULL has no meaning in this transformation. The only useful case is to replace an empty string by a null. I try a fix without this variable. |
Thanks! Let me know and I am happy to test it out. I agree about that variable having no impact on this transform. I have different projects that look at empty and null as different (which is by my design). |
Fix #2024 : Null If transform does not "nullify" empty field
NullIfTransform.txt
NullIfTransform.zip
Apache Hop version?
2.2, 2.3
Java version?
11.0.15 (aarch64 java)
Operating system
macOS, Linux
What happened?
Prior to 2.2, the null If steps converted empty strings to null, but in 2.2 it does not work anymore. See attached .hpl with example. It works without issue in 2.1 and will not work properly in 2.2
Issue Priority
Priority: 1
Issue Component
Component: Transforms
The text was updated successfully, but these errors were encountered: