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

when using external schema, struct's fields are not shown in describe <table> #17128

Open
xxchan opened this issue Jun 5, 2024 · 3 comments
Open
Assignees

Comments

@xxchan
Copy link
Member

xxchan commented Jun 5, 2024

when using external schema, struct's fields are not shown in describe <table>

https://github.com/risingwavelabs/risingwave/pull/17110/files#r1627299710

example:

query
describe kafka_json_schema_plain;
----
dimensions (empty) false NULL
map jsonb false NULL
notMap (empty) false NULL
price double precision false NULL
productId bigint false NULL
productName character varying false NULL
tags character varying[] false NULL
_row_id serial true NULL
primary key _row_id NULL NULL
distribution key _row_id NULL NULL
table description kafka_json_schema_plain NULL NULL

There should be dimenstions.xx and notMap.xx. BTW, maybe we can also show struct instead of null for them.

@xxchan
Copy link
Member Author

xxchan commented Jun 19, 2024

It seems this is because ColumnDesc have too many constructors. And only some of them has type_name.

@xxchan
Copy link
Member Author

xxchan commented Jun 24, 2024

related #13104

@xxchan
Copy link
Member Author

xxchan commented Jul 9, 2024

More specifically, ColumnDesc.field_descs is not set.

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