From b7a67a6974c3746354eb67a3414595f6b147db70 Mon Sep 17 00:00:00 2001 From: Hein Date: Mon, 12 Jan 2026 11:12:42 +0200 Subject: [PATCH] =?UTF-8?q?fix(headers):=20=F0=9F=90=9B=20handle=20search?= =?UTF-8?q?=20on=20computed=20columns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/restheadspec/headers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/restheadspec/headers.go b/pkg/restheadspec/headers.go index 7c5d209..bdae2bd 100644 --- a/pkg/restheadspec/headers.go +++ b/pkg/restheadspec/headers.go @@ -354,6 +354,12 @@ func (h *Handler) parseSearchOp(options *ExtendedRequestOptions, headerKey, valu operator := parts[0] colName := parts[1] + if strings.HasPrefix(colName, "cql") { + // Computed column - Will not filter on it + logger.Warn("Search operators on computed columns are not supported: %s", colName) + return + } + // Map operator names to filter operators filterOp := h.mapSearchOperator(colName, operator, value)