Do not use extend as it expects scalar expression not the tabular function calls so use only | myfunction("a","b").