{"record":{"id":"db9607e73acd40f2","repo":"pathwaycom/pathway","slug":"role-column-column-name-r-does-not-belong-to","errorCode":null,"errorMessage":"{role} column {column._name!r} does not belong to the provided table. Pass a column reference from the same table, e.g. {role}=table.{column._name}.","messagePattern":"(.+?) column (.+?) does not belong to the provided table\\. Pass a column reference from the same table, e\\.g\\. (.+?)=table\\.(.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/io/chroma/__init__.py","lineNumber":18,"sourceCode":"# Copyright © 2026 Pathway\n\nfrom __future__ import annotations\n\nfrom typing import Iterable\n\nfrom pathway.internals import api, datasink\nfrom pathway.internals._io_helpers import _format_output_value_fields\nfrom pathway.internals.config import _check_entitlements\nfrom pathway.internals.expression import ColumnReference\nfrom pathway.internals.runtime_type_check import check_arg_types\nfrom pathway.internals.table import Table\nfrom pathway.internals.trace import trace_user_frame\n\n\ndef _check_belongs(column: ColumnReference, table: Table, role: str) -> None:\n    if column._table is not table:\n        raise ValueError(\n            f\"{role} column {column._name!r} does not belong to the provided \"\n            f\"table. Pass a column reference from the same table, \"\n            f\"e.g. {role}=table.{column._name}.\"\n        )\n\n\n@check_arg_types\n@trace_user_frame\ndef write(\n    table: Table,\n    collection_name: str,\n    *,\n    primary_key: ColumnReference | None = None,\n    embedding: ColumnReference,\n    document: ColumnReference | None = None,\n    metadata_columns: Iterable[ColumnReference] | None = None,\n    host: str = \"localhost\",\n    port: int = 8000,","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/io/chroma/__init__.py#L1-L36","documentation":"Error \"{role} column {column._name!r} does not belong to the provided table. Pass a column reference from the same table, e.g. {role}=table.{column._name}.\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/io/chroma/__init__.py:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass column references that belong to the table you are writing (e.g. table.column) for every role argument."],"exampleFix":"pw.io.chroma.write(t, ..., vector=t.embedding)","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa2f74a4649b7c5908690cf60137263d8d80de5f","analyzedAt":"2026-08-15T01:48:17.006Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}