Resolve errors when NQL queries use unsupported data types or operations
NQL validates data types during query parsing and execution. When a query includes unsupported types or incompatible type operations, the platform returns a 422 error with details about the type issue.
The GEOMETRY type cannot be used directly in SELECT statements. This error occurs when your query attempts to return a geometry column or the result of a geometry function.
{ "type": "https://www.narrative.io/knowledge-base/support-troubleshooting/nql/unsupported-type-error", "title": "Unsupported Type Error: Unsupported GEOMETRY Type", "status": 422, "detail": "The NQL query includes the unsupported GEOMETRY type. The request cannot be processed because the GEOMETRY type is not supported in the SELECT.", "instance": "/nql/run", "logId": "2cf8fef9-9dc2-4438-b6f9-e28c386e48cc"}
Geometry functions like STCIRCLE() return GEOMETRY types that cannot be serialized in query results. While you can use geometry functions in JOIN conditions and WHERE clauses, you cannot SELECT them directly.
{ "type": "https://www.narrative.io/knowledge-base/support-troubleshooting/nql/unsupported-type-error", "title": "Unsupported Type Error: String Concatenation", "status": 422, "detail": "The NQL query encountered an unsupported type error when attempting to concatenate different types using the '||' operator. The '||' operator can only concatenate :string || :string or <EQUIVALENTTYPE> || <EQUIVALENTTYPE> and is not compatible with '<RECORDTYPE:PEEK_DEFAULT(VARCHAR TYPE, VARCHAR VALUE)> || <CHAR(1)>'.", "instance": "/nql/parse", "logId": "7798e641-5d5e-47d3-a884-f5271e788b6b"}