Skip to content

Commit

Permalink
decrease diff
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Oct 22, 2024
1 parent 3e55907 commit 6c80d1f
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions sqlglot/lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -322,6 +302,8 @@ def _expression_into_node(
)
)

return node


class GraphHTML:
"""Node to HTML generator using vis.js.
Expand Down

0 comments on commit 6c80d1f

Please sign in to comment.