apache / apache/datafusion-sqlparser-rs

pre_visit_relation not invoked for Drop query

Open
#851 2 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

Hi,

I am using the pre_visit_relation to extract tables from queries and I found that for some reason,
Drop Table t1 not invoked the pre_visit_relation method.

Do you know if this is the expected behaviour? or it will be supported in next versions?

thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported `Drop Table t1` case with `pre_visit_relation` and compare it with a query where the callback runs. Inspect the parser and visitor handling for DROP statements, along with any existing visitor tests; done means the expected behavior is established and covered by a regression test or documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.