public static int compare(String fromVersion, String toVersion) {
        return ClickHouseVersion.of(fromVersion).compareTo(ClickHouseVersion.of(toVersion));
    }
Compares two versions part by part, which is not semantical. For example:
{@code compare("21.3.1", "21.3") > 0}, because "21.3.1.0" is greater than
"21.3.0.0". However, {@code check("21.3.1", "(,21.3]") == true}, since
"21.3.1" is considered as part of "21.3" series.

@param fromVersion version
@param toVersion   version to compare with
@return positive integer if {@code fromVersion} is newer than
        {@code toVersion}; zero if they're equal; or negative integer if
        {@code fromVersion} is older
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseVersion.java