Reputation: 6787
I have created a new dataset with physical billing enabled:
CREATE SCHEMA `project1.test_physical_storage`
OPTIONS (
default_partition_expiration_days = 29,
default_table_expiration_days = 29,
description = 'Testing physical storage ',
location = 'US',
max_time_travel_hours = 48,
storage_billing_model = PHYSICAL
);
Then I tried creating a new table in this dataset
create table `test_physical_storage.tabl1` (id int, name string) ;
insert into `test_physical_storage.tabl1` values(1,'abc'), (2,'xyz');
But I see that the table only has logical bytes. It doesnt have physical bytes.
Edit: After some time I was able to see physical bytes too. But there are still logical bytes. Shouldnt logical bytes become 0 ?
Upvotes: 0
Views: 462
Reputation: 6787
Following is based on my discussion with GCP support:
storage_billing_model
Upvotes: 0
Reputation: 1377
Storage billing model of a dataset is set to LOGICAL by default, by updating to logical you will have to wait for about 24 hrs to take effect:
When you change a dataset's billing model, it takes 24 hours for the change to take effect.
You can visit this article for more information about Storage billing models:
https://cloud.google.com/bigquery/docs/updating-datasets#sql_4
Upvotes: 0