COALESCE to json array not working in sql function - Drizzle Team