Skip to content

Commit

Permalink
Fixed issue with isDigit()
Browse files Browse the repository at this point in the history
  • Loading branch information
alberttwong committed Mar 12, 2024
1 parent 350b853 commit fa5e1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/starrocks/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def is_before_version(self, version: str) -> bool:
conn = self.connections.get_if_exists()
if conn:
server_version = conn.handle.server_version
server_version_tuple = tuple(int(part) for part in server_version if part.isdigit())
server_version_tuple = tuple(server_version)
version_detail_tuple = tuple(int(part) for part in version.split(".") if part.isdigit())
if version_detail_tuple > server_version_tuple:
return True
Expand Down

0 comments on commit fa5e1ef

Please sign in to comment.