-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…dHashMap ### What changes were proposed in this pull request? When storing table metadata in the `describe` LinkedHashMap object, we retain the timestamp as a `long`data type (instead of converting to a formatted date `string` type) to allow flexibility and extensibility of `describe` date format. Formatting the date fields is delegated to the caller (e.g. describe table, describe as json, describe column, etc.). Example date for describe table: `Mon Nov 01 12:00:00 UTC 2021` Example date for describe as json: `2021-11-01T12:00:00Z` ### Why are the changes needed? Improve extensibility of `describe` and ensure backwards compatibility ### Does this PR introduce _any_ user-facing change? Affects the `describe` output date format ### How was this patch tested? Added `describe table` tests for date format ### Was this patch authored or co-authored using generative AI tooling? No Closes #49513 from asl3/asl3/describetable-dateplaintext. Lead-authored-by: Amanda Liu <[email protected]> Co-authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information
Showing
3 changed files
with
56 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters