File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,12 @@ install-dev-dbt-%:
4343 fi ; \
4444 $(MAKE ) install-dev; \
4545 if [ " $$ version" = " 1.6.0" ]; then \
46- echo " Applying pydantic override for dbt 1.6.0" ; \
47- $(PIP ) install ' pydantic>=2.0.0' --reinstall; \
46+ echo " Applying overrides for dbt 1.6.0" ; \
47+ $(PIP ) install ' pydantic>=2.0.0' ' google-cloud-bigquery==3.30.0' ' databricks-sdk==0.28.0' --reinstall; \
48+ fi ; \
49+ if [ " $$ version" = " 1.7.0" ]; then \
50+ echo " Applying overrides for dbt 1.7.0" ; \
51+ $(PIP ) install ' databricks-sdk==0.28.0' --reinstall; \
4852 fi ; \
4953 mv pyproject.toml.backup pyproject.toml; \
5054 echo " Restored original pyproject.toml"
Original file line number Diff line number Diff line change 1313from sqlmesh .core .dialect import jinja_query
1414from sqlmesh .core .model import SqlModel
1515from sqlmesh .core .model .kind import OnDestructiveChange , OnAdditiveChange
16+ from sqlmesh .dbt .builtin import Api
1617from sqlmesh .dbt .column import ColumnConfig
1718from sqlmesh .dbt .common import Dependencies
1819from sqlmesh .dbt .context import DbtContext
@@ -1092,6 +1093,23 @@ def test_sqlmesh_model_kwargs_columns_override():
10921093 assert kwargs .get ("columns" ) == {"c" : exp .DataType .build (exp .DataType .Type .UINT )}
10931094
10941095
1096+ @pytest .mark .parametrize (
1097+ "dialect" ,
1098+ [
1099+ "databricks" ,
1100+ "duckdb" ,
1101+ "postgres" ,
1102+ "redshift" ,
1103+ "snowflake" ,
1104+ "bigquery" ,
1105+ "trino" ,
1106+ "clickhouse" ,
1107+ ],
1108+ )
1109+ def test_api_class_loading (dialect : str ):
1110+ Api (dialect )
1111+
1112+
10951113def test_empty_vars_config (tmp_path ):
10961114 """Test that a dbt project can be loaded with an empty vars config."""
10971115 dbt_project_dir = tmp_path / "test_project"
You can’t perform that action at this time.
0 commit comments