Skip to content

subquery mistake alias as table name in visualiztion #512

@shengkui

Description

@shengkui

Describe the bug

Alias of a subquery show as a Table node in Visualizes Table/Column Lineage

SQL

CREATE TABLE main.tab1 AS (
  SELECT * FROM (
    SELECT T0.* FROM (SELECT * FROM main.tab0) T0 WHERE T0.num < 100
  )
)

To Reproduce
Note here we refer to SQL provided in prior step as stored in a file named test.sql

sqllineage -f test.sql --dialect=ansi -g

Web UI (Web User Interface):

alias_table

Expected behavior

There should be no table node for alias of subquery.

Python version (available via python --version)

  • 3.10.13

SQLLineage version (available via sqllineage --version):

  • 1.4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions