databrickslabs / remorph

Cross-compiler and Data Reconciler into Databricks Lakehouse
Other
47 stars 30 forks source link

[BUG]: Duplicate UnresolvedRelation when parsing invalid SQL #1224

Open ericvergnaud opened 6 days ago

ericvergnaud commented 6 days ago

Is there an existing issue for this?

Category of Bug / Issue

TranspileParserError

Current Behavior

When transpiling invalid SQL, such as:

CREATE TABLE t1 (x VARCHAR);
SELECT x y z;
SELECT 3 FROM t3;

2 UnresolvedRelation entities are generated for the invalid SQL SELECT x y z

Expected Behavior

Only 1 UnresolvedRelation entity should be generated

Steps To Reproduce

See PR #1223

Relevant log output or Exception details

No response

Sample Query

No response

Operating System

macOS

Version

latest via Databricks CLI