报错信息:
ERROR: query plan with multiple segworker groups is not supported HINT: likely caused by a function that reads or modifies data in a distributed table CONTEXT: PL/pgSQL function actv_comp(date,date) line 4 at RETURN QUERY
我们可能经常会遇到需要在query调用自定义函数的情况,但是在Greenplum中,如果函数中有query,然后又在query中调用该函数则会报错。
例子:
创建函数