Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/show_data automatically aggregates results by db or table #34477

Open
sduzh opened this issue Nov 7, 2023 · 6 comments · May be fixed by #41334
Open

/api/show_data automatically aggregates results by db or table #34477

sduzh opened this issue Nov 7, 2023 · 6 comments · May be fixed by #41334
Assignees

Comments

@sduzh
Copy link
Contributor

sduzh commented Nov 7, 2023

Feature request

Provides an option to count the data size of all databases or tables via the RESTful API /api/show_data.

@sduzh sduzh self-assigned this Nov 7, 2023
@sduzh sduzh added the good first issue Good for newcomers label Nov 7, 2023
@Jin-H
Copy link
Contributor

Jin-H commented Nov 10, 2023

I want try this task, can you assign it to me?

@sduzh
Copy link
Contributor Author

sduzh commented Nov 10, 2023

I want try this task, can you assign it to me?

Of course! If you have any questions, please feel free to discuss with me at any time.

@Jin-H
Copy link
Contributor

Jin-H commented Nov 20, 2023

Feature request

Provides an option to count the data size of all databases or tables via the RESTful API /api/show_data.

I have a question about this requirement. Should I provide a table parameter to indicate that I want to count the current table size?

In show data statement we can calculate each table size in table format

StarRocks > show data;
+--------------------------+----------------+---------------------+
| TableName                | Size           | ReplicaCount        |
+--------------------------+----------------+---------------------+
| table_1                       | 587.555 KB     | 36                  |
| table_2                      | 88.386 KB       | 36                  |
| table_3                      | 433.913 KB     | 36                  |
| table_4                      | 0.000 B           | 36                  |
| table_5                      | 71.426 KB       | 36                  |
| table_6                      | 166.251 KB     | 36                  |
| table_7                      | 49.008 KB      | 36                  |
| table_8                      | 6.404 MB       | 36                  |
| table_9                      | 5.617 MB        | 36                  |
| table_10                    | 433.913 KB     | 36                  |
| Total                          | 13.809 MB      | 360                 |
| Quota                        | 8388608.000 TB | 9223372036854775807 |
| Left                            | 8388608.000 TB | 9223372036854775447 |
+--------------------------+----------------+---------------------+

Do we want to remain unified?

@sduzh
Copy link
Contributor Author

sduzh commented Nov 20, 2023

Feature request

Provides an option to count the data size of all databases or tables via the RESTful API /api/show_data.

I have a question about this requirement. Should I provide a table parameter to indicate that I want to count the current table size?

In show data statement we can calculate each table size in table format

StarRocks > show data;
+--------------------------+----------------+---------------------+
| TableName                | Size           | ReplicaCount        |
+--------------------------+----------------+---------------------+
| table_1                       | 587.555 KB     | 36                  |
| table_2                      | 88.386 KB       | 36                  |
| table_3                      | 433.913 KB     | 36                  |
| table_4                      | 0.000 B           | 36                  |
| table_5                      | 71.426 KB       | 36                  |
| table_6                      | 166.251 KB     | 36                  |
| table_7                      | 49.008 KB      | 36                  |
| table_8                      | 6.404 MB       | 36                  |
| table_9                      | 5.617 MB        | 36                  |
| table_10                    | 433.913 KB     | 36                  |
| Total                          | 13.809 MB      | 360                 |
| Quota                        | 8388608.000 TB | 9223372036854775807 |
| Left                            | 8388608.000 TB | 9223372036854775447 |
+--------------------------+----------------+---------------------+

Do we want to remain unified?

I think it's ok.

Copy link

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

@kevincai
Copy link
Contributor

kevincai commented Aug 5, 2024

@Jin-H are you still working on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment