File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 "requests" ,
4545 "rich" ,
4646 "ruamel.yaml" ,
47- "sqlglot~=13.2.1 " ,
47+ "sqlglot~=13.2.2 " ,
4848 "fsspec" ,
4949 ],
5050 extras_require = {
Original file line number Diff line number Diff line change @@ -1157,6 +1157,7 @@ def create_external_model(
11571157 name ,
11581158 dialect = dialect ,
11591159 path = path ,
1160+ kind = "EXTERNAL" ,
11601161 ** kwargs ,
11611162 )
11621163
Original file line number Diff line number Diff line change @@ -60,12 +60,18 @@ def test_create_external_models(sushi_context):
6060 )
6161
6262 sushi_context .upsert_model (model )
63- assert sushi_context .models ["sushi.raw_fruits" ].columns_to_types == {
63+ raw_fruits = sushi_context .models ["sushi.raw_fruits" ]
64+ assert raw_fruits .kind .is_symbolic
65+ assert raw_fruits .kind .is_external
66+ assert raw_fruits .columns_to_types == {
6467 "id" : exp .DataType .build ("BIGINT" ),
6568 "name" : exp .DataType .build ("VARCHAR" ),
6669 }
6770
68- assert sushi_context .models ["sushi.fruits" ].columns_to_types == {
71+ fruits = sushi_context .models ["sushi.fruits" ]
72+ assert not fruits .kind .is_symbolic
73+ assert not fruits .kind .is_external
74+ assert fruits .columns_to_types == {
6975 "id" : exp .DataType .build ("BIGINT" ),
7076 "name" : exp .DataType .build ("VARCHAR" ),
7177 }
You can’t perform that action at this time.
0 commit comments