-
Notifications
You must be signed in to change notification settings - Fork 34
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
Discard/replace "null" values by pattern. #346
Conversation
Hm, when using this for the original use case in metafacture/metafacture-fix#34, I think having an actual regex pattern for the nullness is actually a bit of a stretch, as you mentioned yourself in metafacture/metafacture-fix#34 (comment). It also makes the original use case more complex (regex that matches only empty strings). While different systems can indicate nullness in different ways ( |
Indeed, I contemplated a list of strings myself. But Flux doesn't support those. Would you mind having to apply the filter multiple times in case there were multiple keywords to filter? Then we could implement a (varargs) keyword setter instead of a pattern setter.
How so? |
I'm not sure what you mean here. What would that look like in a Flux? I'm a bit confused in general. For the use case I saw in metafacture/metafacture-fix#34, I imagine a single config string that replaces
Ha, so after researching Finally, seeing all these configured |
It's just a preemptive measure on my part. YAGNI? Maybe. To me it just feels a little restrictive (if we're going that route at all), I certainly can imagine someone wanting a more flexible filter down the road.
It's a pattern. If I wanted to filter out only exact matches, I could have done so with
That's fine with me. If you prefer |
Interesting, and with the
+1, I think that makes more sense, these filter-nulls which don't actually filter nulls seem wrong. |
No, AFAIUI, the Flow builder would add two separate elements.
OK, closing then. |
Fixes metafacture/metafacture-fix#34.