def METHOD_NAME():
    with pytest.raises(ValidationError):
        ClickhouseDataSource(name='mycon', domain='mydomain', database='clickhouse_db', query='')
    with pytest.raises(ValueError) as exc_info:
        ClickhouseDataSource(name='mycon', domain='mydomain', database='clickhouse_db')
    assert "'query' or 'table' must be set" in str(exc_info.value)
    ds = ClickhouseDataSource(
        name='mycon', domain='mydomain', database='clickhouse_db', table='test'
    )
    assert ds.query == 'select * from test;'