{"record":{"id":"46da1b4491305785","repo":"pathwaycom/pathway","slug":"unsupported-direction-self-direction","errorCode":null,"errorMessage":"Unsupported direction: {self._direction}","messagePattern":"Unsupported direction: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/pathway/stdlib/temporal/_asof_join.py","lineNumber":328,"sourceCode":"                        prev_id,\n                        pw.if_else(\n                            cur_t - pw.unwrap(prev_t) < pw.unwrap(next_t) - cur_t,\n                            prev_id,\n                            next_id,\n                        ),\n                    ),\n                )\n\n            peer_elem = select_nearest(\n                m.t,\n                m.prev_diff,\n                m.next_diff,\n                m.ix(m.prev_diff, optional=True).t,\n                m.ix(m.next_diff, optional=True).t,\n            )\n\n        else:\n            raise ValueError(f\"Unsupported direction: {self._direction}\")\n        m += m.select(peer_elem=peer_elem)\n\n        def fill_self(m_self: pw.Table, side: bool):\n            return {\n                req.output_name: m_self[req.internal_name]\n                for req in self._all_cols\n                if req.side == side\n            }\n\n        def fill_peer(m_self: pw.Table, side: bool):\n            reqs = [req for req in self._all_cols if req.side != side]\n\n            reqs_with_default = [req for req in reqs if req.default is not None]\n            reqs_wo_default = [req for req in reqs if req.default is None]\n            m_with_peer = m_self.filter(m_self.peer_elem.is_not_none())\n\n            res_default = m_self.select(\n                **{req.output_name: req.default for req in reqs_with_default}","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/pathwaycom/pathway/blob/fa2f74a4649b7c5908690cf60137263d8d80de5f/python/pathway/stdlib/temporal/_asof_join.py#L310-L346","documentation":"Error \"Unsupported direction: {self._direction}\" thrown in pathwaycom/pathway.","triggerScenarios":"Thrown at python/pathway/stdlib/temporal/_asof_join.py:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of Direction.BACKWARD, Direction.FORWARD, or Direction.NEAREST for the asof join."],"exampleFix":"t1.asof_join(t2, t1.t, t2.t, direction=pw.temporal.Direction.BACKWARD)","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-15T17:31:12.345Z"}