Skip to content

backtick handling in Hive SQL parsing #705

@noobxiaohai

Description

@noobxiaohai

Describe the bug
There seems to be an issue with backtick handling in Hive SQL parsing. My code contains backticks which work fine in Hive, but causes errors when being parsed by SQLLineage's frontend.

SQL
Paste the SQL text here. For example:

select  `desc` as description
    from t

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

from sqllineage.runner import LineageRunner

test_sql_str = """
select  'desc' as description
    from t
"""
result = LineageRunner(test_sql_str, dialect="hive")
result.draw()

Image
here is hive result

Image

  • else: whatever other ways to reproduce this bug.

Expected behavior
it shouldbe parsed right.

Python version (available via python --version)

  • 3.11

SQLLineage version (available via sqllineage --version):

  • 1.4.7

Additional context
I repalce the ` by ', and it works

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions