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

Tracking: struct (aka row or record) DataType Support #9694

Open
1 task
xiangjinwu opened this issue May 9, 2023 · 1 comment
Open
1 task

Tracking: struct (aka row or record) DataType Support #9694

xiangjinwu opened this issue May 9, 2023 · 1 comment

Comments

@xiangjinwu
Copy link
Contributor

xiangjinwu commented May 9, 2023

Tests:

Also acknowledging some facts:

  • The type syntax struct<fieldA typeA, fieldB typeB> does not exist in PostgreSQL.
  • Casting between 2 struct types matches fields of both sides by position rather than name. This is disallowed by PostgreSQL, but consistent with DuckDB (until 0.9.0) and Flink.
    • DuckDB: with t(v) as (select row(3.2, true)::struct(x decimal, y boolean)) select v::struct(a int, b int) from t;
    • Flink: with t(v) as (select cast(row(3.2, true) as row<x decimal, y boolean>)) select cast(v as row<a int, b int>) from t;
@github-actions github-actions bot added this to the release-0.20 milestone May 9, 2023
@xiangjinwu xiangjinwu changed the title Tracking: struct / row / record DataType Support Tracking: struct (aka row or record) DataType Support May 9, 2023
@xiangjinwu xiangjinwu removed this from the release-0.20 milestone May 26, 2023
Copy link
Contributor

github-actions bot commented Jul 3, 2024

This issue has been open for 60 days with no activity.

If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the no-issue-activity label.

You can also confidently close this issue as not planned to keep our backlog clean.
Don't worry if you think the issue is still valuable to continue in the future.
It's searchable and can be reopened when it's time. 😄

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

No branches or pull requests

1 participant