{"record":{"id":"39146481bb628f95","repo":"pathwaycom/pathway","slug":"table-interpolate-invalid-column-reference-for-391464","errorCode":null,"errorMessage":"Table.interpolate(): Invalid column reference for the parameter value.","messagePattern":"Table\\.interpolate\\(\\): Invalid column reference for the parameter value\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/stdlib/statistical/_interpolate.py","lineNumber":134,"sourceCode":"            )\n        raise ValueError(\n            \"Table.interpolate(): Invalid column reference for the parameter timestamp.\"\n        )\n\n    ordered_table = self.sort(key=timestamp)\n\n    table = self\n\n    for value in values:\n        if isinstance(value, pw.ColumnReference):\n            value = self[value]\n        else:\n            if isinstance(value, str):\n                raise ValueError(\n                    \"Table.interpolate(): Invalid column reference for the parameter value,\"\n                    + f\" found a string. Did you mean this.{value} instead of {repr(value)}?\"\n                )\n            raise ValueError(\n                \"Table.interpolate(): Invalid column reference for the parameter value.\"\n            )\n        assert timestamp.name != value.name\n\n        sorted_timestamp_value = ordered_table + self.select(\n            timestamp=timestamp, value=value\n        )\n\n        table_with_prev_next = _retrieve_prev_next_values(sorted_timestamp_value)\n\n        interpolated_table = table_with_prev_next + sorted_timestamp_value\n\n        prev_tab = interpolated_table.ix(pw.this.prev_value, optional=True)\n        next_tab = interpolated_table.ix(pw.this.next_value, optional=True)\n\n        interpolated_table = interpolated_table.with_columns(\n            interpolated_value=pw.coalesce(\n                pw.this.value,","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/stdlib/statistical/_interpolate.py#L116-L152","documentation":"Error \"Table.interpolate(): Invalid column reference for the parameter value.\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/stdlib/statistical/_interpolate.py:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a ColumnReference for the value parameter of Table.interpolate()."],"exampleFix":"t.interpolate(this.timestamp, this.value)","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"}