Skip to content

Conversation

@Yulei-Yang
Copy link
Contributor

@Yulei-Yang Yulei-Yang commented May 31, 2024

mysql> show storage policy using for test_policy;  
+-------------+----------+---------------------------------+-----------------+
| PolicyName  | Database | Table                           | Partitions      |
+-------------+----------+---------------------------------+-----------------+
| test_policy | db1      | target_test_1                   | ALL             | 
| test_policy | db1      | cooldown_test                   | ALL             |
| test_policy | db1      | partition_test_2                | p201701         |
| test_policy | db1      | partition_with_storage_policy_1 | p201701         | 
| test_policy | db1      | partition_test_1                | p201701,p201702 |
| test_policy | db2      | db2_test_1                      | ALL             |
+-------------+----------+---------------------------------+-----------------+                                            
6 rows in set (0.02 sec)

mysql> show storage policy using;
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| PolicyName            | Database                                | Table                                  | Partitions      |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| test_storage_policy   | regression_test_cold_heat_separation_p2 | table_with_storage_policy_1            | ALL             |
| test_storage_policy   | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201701         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201702         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | table_with_storage_policy_2            | ALL             |
| test_policy           | db1                                     | target_test_1                          | ALL             |
| test_policy           | db1                                     | cooldown_test                          | ALL             |
| test_policy           | db1                                     | partition_test_2                       | p201701         |
| test_policy           | db1                                     | partition_with_storage_policy_1        | p201701         |
| test_policy           | db1                                     | partition_test_1                       | p201701,p201702 |
| test_policy           | db2                                     | db2_test_1                             | ALL             |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
10 rows in set (0.01 sec)

lide-reed pushed a commit to apache/doris that referenced this pull request Jun 4, 2024
…e policy (#35741)

```
mysql> show storage policy using for test_policy;  
+-------------+----------+---------------------------------+-----------------+
| PolicyName  | Database | Table                           | Partitions      |
+-------------+----------+---------------------------------+-----------------+
| test_policy | db1      | target_test_1                   | ALL             | 
| test_policy | db1      | cooldown_test                   | ALL             |
| test_policy | db1      | partition_test_2                | p201701         |
| test_policy | db1      | partition_with_storage_policy_1 | p201701         | 
| test_policy | db1      | partition_test_1                | p201701,p201702 |
| test_policy | db2      | db2_test_1                      | ALL             |
+-------------+----------+---------------------------------+-----------------+                                            
6 rows in set (0.02 sec)

mysql> show storage policy using;
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| PolicyName            | Database                                | Table                                  | Partitions      |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| test_storage_policy   | regression_test_cold_heat_separation_p2 | table_with_storage_policy_1            | ALL             |
| test_storage_policy   | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201701         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201702         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | table_with_storage_policy_2            | ALL             |
| test_policy           | db1                                     | target_test_1                          | ALL             |
| test_policy           | db1                                     | cooldown_test                          | ALL             |
| test_policy           | db1                                     | partition_test_2                       | p201701         |
| test_policy           | db1                                     | partition_with_storage_policy_1        | p201701         |
| test_policy           | db1                                     | partition_test_1                       | p201701,p201702 |
| test_policy           | db2                                     | db2_test_1                             | ALL             |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
10 rows in set (0.01 sec)
```

docs: apache/doris-website#701
@lide-reed lide-reed self-requested a review June 4, 2024 02:10
Copy link

@lide-reed lide-reed left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@cambyzju cambyzju left a comment

Choose a reason for hiding this comment

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

LGTM

@Yulei-Yang Yulei-Yang changed the title [Improvement](cooldown) add statment to show objects which use specific storage policy [Improvement](cooldown) add statment to show objects which use storage policy Jun 4, 2024
@cambyzju cambyzju merged commit ccac349 into apache:master Jun 4, 2024
@Yulei-Yang Yulei-Yang deleted the show_storage_policy_using branch June 4, 2024 03:05
dataroaring pushed a commit to apache/doris that referenced this pull request Jun 4, 2024
…e policy (#35741)

```
mysql> show storage policy using for test_policy;  
+-------------+----------+---------------------------------+-----------------+
| PolicyName  | Database | Table                           | Partitions      |
+-------------+----------+---------------------------------+-----------------+
| test_policy | db1      | target_test_1                   | ALL             | 
| test_policy | db1      | cooldown_test                   | ALL             |
| test_policy | db1      | partition_test_2                | p201701         |
| test_policy | db1      | partition_with_storage_policy_1 | p201701         | 
| test_policy | db1      | partition_test_1                | p201701,p201702 |
| test_policy | db2      | db2_test_1                      | ALL             |
+-------------+----------+---------------------------------+-----------------+                                            
6 rows in set (0.02 sec)

mysql> show storage policy using;
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| PolicyName            | Database                                | Table                                  | Partitions      |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| test_storage_policy   | regression_test_cold_heat_separation_p2 | table_with_storage_policy_1            | ALL             |
| test_storage_policy   | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201701         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201702         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | table_with_storage_policy_2            | ALL             |
| test_policy           | db1                                     | target_test_1                          | ALL             |
| test_policy           | db1                                     | cooldown_test                          | ALL             |
| test_policy           | db1                                     | partition_test_2                       | p201701         |
| test_policy           | db1                                     | partition_with_storage_policy_1        | p201701         |
| test_policy           | db1                                     | partition_test_1                       | p201701,p201702 |
| test_policy           | db2                                     | db2_test_1                             | ALL             |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
10 rows in set (0.01 sec)
```

docs: apache/doris-website#701
seawinde pushed a commit to seawinde/doris that referenced this pull request Jun 5, 2024
…e policy (apache#35741)

```
mysql> show storage policy using for test_policy;  
+-------------+----------+---------------------------------+-----------------+
| PolicyName  | Database | Table                           | Partitions      |
+-------------+----------+---------------------------------+-----------------+
| test_policy | db1      | target_test_1                   | ALL             | 
| test_policy | db1      | cooldown_test                   | ALL             |
| test_policy | db1      | partition_test_2                | p201701         |
| test_policy | db1      | partition_with_storage_policy_1 | p201701         | 
| test_policy | db1      | partition_test_1                | p201701,p201702 |
| test_policy | db2      | db2_test_1                      | ALL             |
+-------------+----------+---------------------------------+-----------------+                                            
6 rows in set (0.02 sec)

mysql> show storage policy using;
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| PolicyName            | Database                                | Table                                  | Partitions      |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
| test_storage_policy   | regression_test_cold_heat_separation_p2 | table_with_storage_policy_1            | ALL             |
| test_storage_policy   | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201701         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | partition_with_multiple_storage_policy | p201702         |
| test_storage_policy_2 | regression_test_cold_heat_separation_p2 | table_with_storage_policy_2            | ALL             |
| test_policy           | db1                                     | target_test_1                          | ALL             |
| test_policy           | db1                                     | cooldown_test                          | ALL             |
| test_policy           | db1                                     | partition_test_2                       | p201701         |
| test_policy           | db1                                     | partition_with_storage_policy_1        | p201701         |
| test_policy           | db1                                     | partition_test_1                       | p201701,p201702 |
| test_policy           | db2                                     | db2_test_1                             | ALL             |
+-----------------------+-----------------------------------------+----------------------------------------+-----------------+
10 rows in set (0.01 sec)
```

docs: apache/doris-website#701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants