MCPcopy Index your code
hub / github.com/pathwaycom/pathway / _subquery

Function _subquery

python/pathway/internals/sql/processing.py:306–315  ·  view source on GitHub ↗
(
    node: sql_expr.Subquery, context: ContextType
)

Source from the content-addressed store, hash-verified

304
305@register(nodetype=sql_expr.Subquery)
306def _subquery(
307 node: sql_expr.Subquery, context: ContextType
308) -> tuple[table.Table, ContextType]:
309 context = _with_block(node, context)
310 tab, _ = _run(node.args.pop("this"), context)
311 tab, context = _alias_block(node, tab, context)
312 if node.args.pop("pivots", []) != []:
313 raise NotImplementedError("PIVOTS not supported")
314 _check_work_done(node)
315 return tab, context
316
317
318@register(nodetype=sql_expr.Table)

Callers 1

Calls 4

_with_blockFunction · 0.85
_alias_blockFunction · 0.85
_check_work_doneFunction · 0.85
_runFunction · 0.70

Tested by

no test coverage detected