presto-hive/src/main/java/io/prestosql/plugin/hive/HiveBooleanParser.java/HiveBooleanParser/parseHiveBoolean
class HiveBooleanParser:    public static Boolean parseHiveBoolean(byte[] bytes, int start, int length)
    {
        if (isTrue(bytes, start, length)) {
            return true;
        }
        if (isFalse(bytes, start, length)) {
            return false;
        }
        return null;
    }