-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: change system.tenant_usage to use a single consumption column
There are ongoing discussions about adding more components to the RU cost. The prospect of having to change the columns of `system.tenant_usage` each time is daunting. This commit modifies the table to use a single `total_consumption` column which encodes the TenantConsumption proto. We can add fields to the proto in the future without changing the schema. The values are still readable via SQL using `pb_to_json`: ``` crdb_internal.pb_to_json('cockroach.roachpb.TenantConsumption', total_consumption) ``` Informs #68479. Release note: None Release justification: Necessary change for supporting changes to the cost model for the upcoming Serverless MVP release. This functionality is only enabled in multi-tenant scenarios and should have no impact on our dedicated customers.
- Loading branch information
1 parent
bdb4c1a
commit dd7cbf2
Showing
12 changed files
with
205 additions
and
195 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
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
Oops, something went wrong.