Closed megri closed 8 months ago
Actually, since the version string allows non-int parts like 2-269e832
above, perhaps it's better to change https://github.com/StarRocks/starrocks/blob/5ca5ff0108d6a47f17d421ae37f66ebbec5775e4/contrib/dbt-connector/dbt/adapters/starrocks/impl.py#L148 to not do str->int conversion. IIRC Python allows comparison between strings based on sort order.
tried it to not to the str to int conversation but we need it in other areas (eg. we have to rewrite commands based on which version of SR).
I tested in this with 3.1+ with and without version. It seems to work now.
https://github.com/StarRocks/dbt-starrocks/commit/f5ada3619885dafecae79a4a3043fc0d2c27bc58
Steps to reproduce the behavior (Required)
version
is specified in your project's profiles.yml;dbt seed
.Behavior (Required)
You get this error:
I ran a debugger and it seems to fail here: https://github.com/StarRocks/starrocks/blob/5ca5ff0108d6a47f17d421ae37f66ebbec5775e4/contrib/dbt-connector/dbt/adapters/starrocks/impl.py#L149
… due to this line returning a string-tuple: https://github.com/StarRocks/starrocks/blob/5ca5ff0108d6a47f17d421ae37f66ebbec5775e4/contrib/dbt-connector/dbt/adapters/starrocks/connections.py#L92
… in turn happening when version is not explicitly defined, here: https://github.com/StarRocks/starrocks/blob/5ca5ff0108d6a47f17d421ae37f66ebbec5775e4/contrib/dbt-connector/dbt/adapters/starrocks/connections.py#L136-L140
StarRocks version (Required)
3.2.2-269e832