pathwaycom/pathway · error · ValueError

{role} column {column._name!r} does not belong to the provid

Error message

{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}.

What it means

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.

Source

Thrown at python/pathway/io/chroma/__init__.py:18

# Copyright © 2026 Pathway

from __future__ import annotations

from typing import Iterable

from pathway.internals import api, datasink
from pathway.internals._io_helpers import _format_output_value_fields
from pathway.internals.config import _check_entitlements
from pathway.internals.expression import ColumnReference
from pathway.internals.runtime_type_check import check_arg_types
from pathway.internals.table import Table
from pathway.internals.trace import trace_user_frame


def _check_belongs(column: ColumnReference, table: Table, role: str) -> None:
    if column._table is not table:
        raise ValueError(
            f"{role} column {column._name!r} does not belong to the provided "
            f"table. Pass a column reference from the same table, "
            f"e.g. {role}=table.{column._name}."
        )


@check_arg_types
@trace_user_frame
def write(
    table: Table,
    collection_name: str,
    *,
    primary_key: ColumnReference | None = None,
    embedding: ColumnReference,
    document: ColumnReference | None = None,
    metadata_columns: Iterable[ColumnReference] | None = None,
    host: str = "localhost",
    port: int = 8000,

View on GitHub (pinned to fa2f74a464)

Solutions

  1. Pass column references that belong to the table you are writing (e.g. table.column) for every role argument.

Example fix

pw.io.chroma.write(t, ..., vector=t.embedding)

When it happens

Trigger: Thrown at python/pathway/io/chroma/__init__.py:18 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of pathwaycom/pathway@fa2f74a464 (2026-08-15). Data as JSON: /api/errors/db9607e73acd40f2. Report an issue: GitHub.