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

Support explicit type and name during table creation #10273

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

duongcongtoai
Copy link
Contributor

Which issue does this PR close?

Closes #10207 .

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Apr 28, 2024
@duongcongtoai duongcongtoai changed the title 10207 explicit struct Support explicit type and name during table creation Apr 28, 2024
Cargo.toml Outdated
@@ -103,7 +103,7 @@ parquet = { version = "51.0.0", default-features = false, features = ["arrow", "
rand = "0.8"
rstest = "0.19.0"
serde_json = "1"
sqlparser = { version = "0.45.0", features = ["visitor"] }
sqlparser = { git = "https://github.com/duongcongtoai/sqlparser-rs", rev = "62f1e02f4a7d5160e8538b34f30e311905b4a72a", features = ["visitor"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temp commithash

@duongcongtoai
Copy link
Contributor Author

waiting for sql-parser upgrade in this PR: #10392

@duongcongtoai duongcongtoai marked this pull request as ready for review June 8, 2024 07:13
@duongcongtoai
Copy link
Contributor Author

duongcongtoai commented Jun 8, 2024

hi @jayzhan211 the PR is ready for review, but the syntax is bigquery-liked. Do you need the syntax of duckdb to complete this issue?

@jayzhan211
Copy link
Contributor

jayzhan211 commented Jun 8, 2024

hi @jayzhan211 the PR is ready for review, but the syntax is bigquery-liked. Do you need the syntax of duckdb to complete this issue?

It would be nice to support DuckDB-like syntax, aligning with PostgreSQL and DuckDB conventions unless a better alternative is available.

@duongcongtoai
Copy link
Contributor Author

ok, i'm working on it

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @duongcongtoai -- this looks great to me 🙏


# named and named less struct fields
statement ok
CREATE TABLE struct_values (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@alamb alamb merged commit 0203a1a into apache:main Jun 14, 2024
23 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* temp cargo commit

* chore: update test

* fmt

* update cli  cargo lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Struct table with explicit type and name
3 participants