Skip to content

Conversation

@Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Dec 29, 2023

What changes were proposed in this pull request?

Support v2 DESCRIBE TABLE EXTENDED with table stats

Why are the changes needed?

Similar to #40058, make DS v1/v2 command parity, e.g.

DESC EXTENDED table

col_name data_type comment
... ... ...
Statistics 864 bytes, 2 rows
... ... ...

Does this PR introduce any user-facing change?

No

How was this patch tested?

add test describe extended table with stats

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Dec 29, 2023
@MaxGekk
Copy link
Member

MaxGekk commented Dec 29, 2023

@Zouxxyy Please, trigger GitHub actions.

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

Please, fix the failed test, seems it is related to your changes:

[info]   == Results ==
[info]   !== Correct Answer - 5 ==           == Spark Answer - 6 ==
[info]   !struct<>                           struct<col_name:string,data_type:string,comment:string>
[info]    [# Column Default Values,,]        [# Column Default Values,,]
[info]    [# Detailed Table Information,,]   [# Detailed Table Information,,]
[info]    [# Metadata Columns,,]             [# Metadata Columns,,]
[info]   ![id,bigint,42]                     [Statistics,0 bytes, 0 rows,null]
[info]   ![id,bigint,null]                   [id,bigint,42]
[info]   !                                   [id,bigint,null] (QueryTest.scala:267)

@Zouxxyy
Copy link
Contributor Author

Zouxxyy commented Dec 30, 2023

@MaxGekk Thanks for your reminder, fix it

@Zouxxyy
Copy link
Contributor Author

Zouxxyy commented Jan 2, 2024

@MaxGekk Update, thanks

@MaxGekk
Copy link
Member

MaxGekk commented Jan 2, 2024

+1, LGTM. Merging to master.
Thank you, @Zouxxyy.

@MaxGekk MaxGekk closed this in 7d09991 Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants