skip to Main Content

Error executing postgres function: the function does not return a "COMPOSITE" type – Postgresql

I have written this postgres function in hasura CREATE OR REPLACE FUNCTION get_shipday_filter(p_carriercode TEXT, p_shipdate DATE) RETURNS table(shipday text, delivered int, transit int, refused int, undeliverable int, total_exceptions int) AS $$ SELECT view_group_by_shipday_filter.shipday AS shipday, sum(view_group_by_shipday_filter.delivered) AS delivered, sum(view_group_by_shipday_filter.transit) AS…

VIEW QUESTION
Back To Top
Search