presto-main/src/main/java/io/prestosql/server/protocol/Query.java/Query/toClientWarning
class Query:    private static Warning toClientWarning(PrestoWarning warning)
    {
        WarningCode code = warning.getWarningCode();
        return new Warning(new Warning.Code(code.getCode(), code.getName()), warning.getMessage());
    }