apache / apache/datafusion-sqlparser-rs

JOIN without Alias does not work

Open
#866 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.5k
Forks
772
Avg merge
4d 9h
Merged PRs (30d)
17

Description

## Issue
```sql
SELECT * FROM User JOIN Dept ON User.deptId = Dept.id;
```
Above Query does not work and gets `ParserError("Expected end of statement, found: .")`
It works fine in legacy Database like MySQL.

If it is bug, let me try to fix it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the SQL example and trace the parser error reported after the JOIN, focusing on JOIN handling and qualified column names. No files or tests are named in the issue, so first locate the relevant parser entry point and existing JOIN tests. Done means the query parses successfully without aliases and regression coverage demonstrates that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.