From 6c80d1fd3164233ce6de181753e4646451c18b71 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Mon, 21 Oct 2024 22:55:45 -0700 Subject: [PATCH] decrease diff --- sqlglot/lineage.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/sqlglot/lineage.py b/sqlglot/lineage.py index a80bbb19a6..dc76a07d3d 100644 --- a/sqlglot/lineage.py +++ b/sqlglot/lineage.py @@ -208,26 +208,6 @@ def to_node( if upstream: upstream.downstream.append(node) - _expression_into_node( - select=select, - node=node, - scope=scope, - dialect=dialect, - source_name=source_name, - trim_selects=trim_selects, - ) - - return node - - -def _expression_into_node( - select: exp.Expression, - node: Node, - scope: Scope, - dialect: DialectType, - source_name: t.Optional[str] = None, - trim_selects: bool = True, -) -> None: subquery_scopes = { id(subquery_scope.expression): subquery_scope for subquery_scope in scope.subquery_scopes } @@ -322,6 +302,8 @@ def _expression_into_node( ) ) + return node + class GraphHTML: """Node to HTML generator using vis.js.