Buckets:

download
raw
491 Bytes
import pytest
from squirrels._model_configs import FederateModelConfig
@pytest.mark.parametrize("eager,create_type", [
(False, "VIEW"),
(True, "TABLE")
])
def test_get_sql_for_create(eager: bool, create_type: str):
config = FederateModelConfig(eager=eager)
select_query = "SELECT * FROM table"
result = config.get_sql_for_create("test_model", select_query)
expected = f"CREATE {create_type} test_model AS\n\nSELECT * FROM table"
assert result == expected

Xet Storage Details

Size:
491 Bytes
·
Xet hash:
794bcae0520a49772965e2ed7db93f56e8ea73e2b102af56421dfa48c1c8fcb6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.