You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all table references without a project_id resolve to using data-project as the project_id for the query. The SQLMesh UI will suggest autocompletion for model names when writing custom SQL but this will only include the dataset and table IDs so when going to run that SQL through the UI the SQL will resolve to trying to query a dataset in the execution_project instead of the project.
Example
Using the config above the following happens
-- Raw Query in model def/UISELECT*FROMdataset.table;
-- Rendered Query for SQLMesh modelSELECT*FROM"data-project"."dataset"."table";
-- Rendered Query for SQLMesh web querySELECT*FROM"execution-project"."dataset"."table";
Desired Behavior
The SQLMesh UI's queries should be rendered to match how the CLI renders model queries.
The text was updated successfully, but these errors were encountered:
Yes I understand that it's expected behavior, but wouldn't it make more sense to use the connection's data project so that the behavior matches writing SQL in models?
With the current behavior, you cannot copy SQL from a model file and run it using fetchdf.
SQLMesh Version: 0.119.0
Engine: BigQuery
Current Behavior
When using a config like the following:
all table references without a
project_id
resolve to usingdata-project
as theproject_id
for the query. The SQLMesh UI will suggest autocompletion for model names when writing custom SQL but this will only include the dataset and table IDs so when going to run that SQL through the UI the SQL will resolve to trying to query a dataset in theexecution_project
instead of theproject
.Example
Using the config above the following happens
Desired Behavior
The SQLMesh UI's queries should be rendered to match how the CLI renders model queries.
The text was updated successfully, but these errors were encountered: