Correction:

> The function has a bulk implementation, so it takes M rows and it outputs M rows.

The function has a bulk implementation, so it takes M rows and it outputs N >= M rows.



On Mon, 14 Jan 2019 at 19:17 Roberto Cornacchia <roberto.cornacchia@gmail.com> wrote:
Hi,

* Background:

I have a custom string tokenizer that I invoke this way:
SELECT *
FROM tokenize( (SELECT id, s FROM my_strings) );

The output has of course a 1-to-N rows relation with the input.
The function has a bulk implementation, so it takes M rows and it outputs M rows.

* The question: 

No matter how large the input table my_strings is, mitosis does not seem to kick in.

Is it not allowed in this case because it cannot assume that my custom function allows to concatenate partial results?
Do you see any chance for me to enable mitosis with this scenario?

Thanks, 
Roberto