Open pib opened 10 years ago
I think I've tracked down why this doesn't work.
In the simple strategy, it creates a stream listener and sets the shouldIgnoreNull setting on it based on the settings: SimpleRiverSource.java#L385
In the column strategy it doesn't set that setting: ColumnRiverSource.java#L131
So I think that a fix should just be a matter of adding .shouldIgnoreNull(context.shouldIgnoreNull()
to the column strategy code at that point.
Yep, the fix was indeed that simple.
When the "column" strategy is chosen, null values get inserted. This wouldn't be too much of a problem if it weren't for the fact that I am indexing geo points and the geo point parser flips out when it gets null for latitude or longitude.
I could force the values to be non-null with
IFNULL(lat, 0)
, but then I will have a bunch of locations in my map in the middle of the Atlantic ocean, which is worse than having things not on the map at all :|The test script below generates this output: