SELECT
"d"."id",
"d"."status_id",
"d"."doc_date",
"d"."doc_number",
"d"."name",
jsonb_array_length(d.extended_data->'signatures') as sign_count,
"links"."archived_at",
"links"."alias",
"ca"."short_name" AS "contractorName"
FROM "documents_main" "d"
INNER JOIN "documents_documents_boxes" "links" ON links.box_id = '921a2331-a0b9-4791-b193-c4b206f836f6' AND links.document_id = "d"."id"
LEFT JOIN "documents_owners" "do" ON "d"."id" = "do"."document_id"
LEFT JOIN "contractors_main" "ca" ON "do"."contractor_id" = "ca"."id" AND "do"."contractor_id" != 'a1fbf6ce-0dd8-4f4a-ab82-ee0fd93b8a63'
WHERE sign_count > 0
ORDER BY "links"."created_at" DESC
Убираю условие sign_count > 0 - выборка формируется, колонка есть. ЧЯДНТ?