Skip to content

Commit

Permalink
fix(BigQuery ConnectionDetails): add schema attribute equivalent to d…
Browse files Browse the repository at this point in the history
…ataset

There is some logic that relies on the Schema field for all warehouses in building the output directory when scaffolding a project, BigQuery calls this a 'dataset'. Rather than do some fancy logic, we just set the Schema attribute with the same value as Dataset.
  • Loading branch information
gwenwindflower committed Apr 23, 2024
1 parent 201b742 commit 5e5166c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/set_connection_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func SetConnectionDetails(fr FormResponse, ps DbtProfiles) shared.ConnectionDeta
ConnType: profile.Outputs[fr.DbtProfileOutput].ConnType,
Project: fr.Database,
Dataset: fr.Schema,
Schema: fr.Schema,
}
}
case "duckdb":
Expand Down Expand Up @@ -110,6 +111,7 @@ func SetConnectionDetails(fr FormResponse, ps DbtProfiles) shared.ConnectionDeta
ConnType: fr.Warehouse,
Project: fr.Project,
Dataset: fr.Dataset,
Schema: fr.Schema,
}
}
case "duckdb":
Expand Down

0 comments on commit 5e5166c

Please sign in to comment.