presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoDatabaseMetaData.java/PrestoDatabaseMetaData/getDatabaseVersionPart
class PrestoDatabaseMetaData:    private int getDatabaseVersionPart(int part)
            throws SQLException
    {
        String version = getDatabaseProductVersion();
        List<String> parts = Splitter.on('.').limit(3).splitToList(version);
        try {
            return parseInt(parts.get(part));
        }
        catch (IndexOutOfBoundsException | NumberFormatException e) {
            return 0;
        }
    }