Conversation
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
==========================================
- Coverage 84.95% 83.89% -1.07%
==========================================
Files 11 12 +1
Lines 472 478 +6
==========================================
Hits 401 401
- Misses 71 77 +6
Continue to review full report at Codecov.
|
|
I sorta think that if you go down this path, you ought to add lifted versions of many other string functions in the standard library: |
|
Oh, I definitely want to add all those lifted versions! The question is, what should they return when they encounter a |
|
Ah good point. Is there any common theme across base string functions that return scalars vs arrays? In the array case (i.e. ‘split’) where the correct return value for a non-null input is, say, an empty array, returning the same thing for a null input seems reasonable. For the scalar case maybe null propagation makes more sense? |
|
Here's another thought, at least based on the Closest analog to this that I can think of for the null case would be a single element array of a |
This is probably a horrible idea and most likely I won't merge it. But hey, lets think about it a while. It is the only way that I can think of that would make the last query in queryverse/Query.jl#134 work out of the gate without a need to think about missing values... Maybe that goal is mistaken in the first place, though.
Essentially what this would do is treat a missing string passed to
splitas equivalent to an empty string...