-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove DFParser #4808
Comments
Actually I think I would like to use Statement, to remove the DDL from LogicalPlan |
Makes sense to me. Also, just as an FYI, when DFParser was introduced, we did not have a good mechanism for selectively overriding parsing in sqlparser-rs but we do now. It should now be possible for us to implement a DataFusion |
There are some differences in datafusion's |
The partitoning is under one of the Hive options, not sure about the others. I believe there is support for custom dialects, but in this case I'd vote for upstreaming anything missing - we don't have any especially esoteric needs AFAIK |
I'd like to take this on. I'll try do the migration in steps to make PRs more digestible and ensure no breakages/regressions. First step is here: #8703 |
Related conversation in apache/datafusion-sqlparser-rs#1080 From what I know, the The COPY syntax I tried to base on DuckDB's copy syntax (which is different than Postgres), so if we added DuckDB style COPY support to sqlparser-rs we could probably migrate DataFusion to use it |
I don't think we plan to do this / remove the EXTERNAL TABLE syntax so let's close this ticket to avoid confusion |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
DataFusion contains a custom
DFParser
that extendssqlparser
and overrides its parsing ofDESCRIBE TABLES
andCREATE EXTERNAL TABLE
.Describe the solution you'd like
Looking at sqlparser the only functionality missing upstream is understanding the
COMPRESSION
keyword inCREATE EXTERNAL TABLE
. This feels like a very simple upstream contribution that would then allow removingDFParser
and its correspondingStatement
abstraction.Describe alternatives you've considered
We could not do this
Additional context
FYI @andygrove @alamb @liukun4515
The text was updated successfully, but these errors were encountered: