Skip to content

Comments

HIVE-29474: DESCRIBE FORMATTED for columns produces wrong output when…#6333

Open
tanishq-chugh wants to merge 2 commits intoapache:masterfrom
tanishq-chugh:desc_for_testing
Open

HIVE-29474: DESCRIBE FORMATTED for columns produces wrong output when…#6333
tanishq-chugh wants to merge 2 commits intoapache:masterfrom
tanishq-chugh:desc_for_testing

Conversation

@tanishq-chugh
Copy link
Contributor

@tanishq-chugh tanishq-chugh commented Feb 23, 2026

… the column datatype is STRUCT

What changes were proposed in this pull request?

Fix DESCRIBE FORMATTED for STRUCT datatype columns output

Why are the changes needed?

Currently, when we have a table with STRUCT datatype column, running the DESCRIBE FORMATTED query on the particular STRUCT column produces wrong output,
For Exm:
CREATE TABLE tbl_t (id int, point STRUCT<x:INT, y:INT>);
DESCRIBE FORMATTED tbl_t point;

gives the following output:
image

Here as we can observe that the col_name & data_type are wrong & instead should be point & struct<x:int,y:int> respectively.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

Manual Testing & Qtest

@sonarqubecloud
Copy link

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants