DatasetId
The DatasetId used to resolve unqualified tables.
Data Type
string
Default Value
""
Remarks
When a query refers to a table it can leave the dataset implicit, or qualify
the dataset directly as the schema portion of the table:
/* Implicit, resolved against connection string */ SELECT FirstName, LastName FROM `customers` /* Explicit, dataset specified as schema */ SELECT FirstName, LastName FROM `psychic-valve-137816`.`Northwind`.`customers`
If the query contains unqualified table references then they are resolved this way:
- If this property is set then the specified dataset is used.
- Otherwise the schema from the first table in the query is used. In the above example the Northwind dataset would be used to resolve any other unqualified tables that would appear in the query (for example, if a JOIN were added).
Note that the query is not consulted when QueryPassthrough is enabled. So you either must set the connection ProjectId and DatasetId or qualify each individual table; otherwise the SELECT query fails.