kerwin-zk opened a new pull request, #7612:
URL: https://github.com/apache/paimon/pull/7612
### Purpose
## Examples
```sql
CREATE TABLE db.orders (
id INT,
amount DOUBLE,
dt STRING
) PARTITIONED BY (dt);
INSERT INTO db.orders VALUES
(1, 10.5, '2025-01-01'),
(2, 20.0, '2025-01-01'),
(3, 15.0, '2025-01-02');
```
### Before
```sql
SHOW TABLE EXTENDED IN db LIKE 'orders' PARTITION(dt = '2025-01-01');
```
```
Partition Values: [dt=2025-01-01]
```
Only partition values were displayed. The TODO `"Partition Parameters",
"Created Time", "Last Access", "Partition Statistics"` was left unimplemented,
and `loadPartitionMetadata` always returned an empty map.
### After
```sql
SHOW TABLE EXTENDED IN db LIKE 'orders' PARTITION(dt = '2025-01-01');
```
Partition Values: [dt=2025-01-01]
Partition Parameters: {recordCount=2, fileSizeInBytes=741, fileCount=1,
lastFileCreationTime=1744105200000}
Partition Statistics: 2 rows, 741 bytes
```sql
SHOW TABLE EXTENDED IN db LIKE 'orders' PARTITION(dt = '2025-01-02');
```
```
Partition Values: [dt=2025-01-02]
Partition Parameters: {recordCount=1, fileSizeInBytes=538, fileCount=1,
lastFileCreationTime=1744105200000}
Partition Statistics: 1 rows, 538 bytes
```
### Tests
CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]