Skip to content
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

Make CreateTable.location / AlterTable.location make more sense #1518

Open
tv42 opened this issue Nov 11, 2024 · 1 comment
Open

Make CreateTable.location / AlterTable.location make more sense #1518

tv42 opened this issue Nov 11, 2024 · 1 comment

Comments

@tv42
Copy link

tv42 commented Nov 11, 2024

CreateTable.location has no documentation and is a tricky edge case, not always set even when SQL statement did set location.

https://docs.rs/sqlparser/latest/sqlparser/ast/struct.CreateTable.html#structfield.location

Since this took some time to figure out, here's what I've found for others also pondering its role:

Maybe make Hive syntax use the top-level location field?

@tv42
Copy link
Author

tv42 commented Nov 11, 2024

Somewhat similar issue about CREATE DATABASE .. LOCATION: #453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant