RefreshViewSchemas Parameter (Connect-GoogleBigQuery Cmdlet)
Allows the provider to determine up-to-date view schemas automatically.
Syntax
Connect-GoogleBigQuery -RefreshViewSchemas bool
Data Type
bool
Default Value
true
Remarks
When using BigQuery views, BigQuery stores a copy of the view schema with the view itself. However, these stored view schemas are not updated when the tables used by the view change. This means that the stored view schema can easily become out of date and cause queries using the view to fail.
By default, the cmdlet will not use the stored view schema and will instead query the view to determine the available columns. This guarantees that the schema will be up to date although it requires the cmdlet to start a query job.
You can disable this option to force the cmdlet to use the stored view schemas. This prevents the cmdlet from running any queries when getting a view schema, but also means that queries using the view will fail if the schema is out of date.