Skip to content

[Feature] Improve partition display format to show key-value pairs. #6632

@zhoulii

Description

@zhoulii

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Currently, the partition display in sys.partitions shows partition values in a simple concatenated format, which makes it difficult for users to understand which value corresponds to which partition key. This is particularly problematic when tables have multiple partition columns.

Solution

Proposed Solution:
Modify the partition display format to show key-value pairs, similar to the format: key1=value1/key2=value2/key3=value3

Reference: ODPS DataWorks Implementation
In Alibaba Cloud's ODPS (MaxCompute) DataWorks platform, partition information is displayed in a clear key-value pair format. This has proven to be much more user-friendly and intuitive for data engineers and analysts.

The ODPS approach shows partitions as:
dt=2024-01-01/region=us-west-1/category=electronics

Instead of the current:
2024-01-01,us-west-1,electronics

Image

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions