https://clickhouse-test-reports.s3.yandex.net/16074/19e31578dfc5847766d13db7cbae9af6949fe5b3/fuzzer/fuzzer.log
{
    
    ASTs & args_func = ast_function->children;
    if (args_func.size() != 1)
        throw Exception("Table function '" + getName() + "' must have arguments.", ErrorCodes::LOGICAL_ERROR);
    ASTs & args = args_func.at(0)->children;
    if (args.size() < 2)
        throw Exception("Table function '" + getName() + "' requires at least 2 arguments", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
    for (auto & arg : args)
        arg = evaluateConstantExpressionOrIdentifierAsLiteral(arg, context);
    filename = args[0]->as<ASTLiteral &>().value.safeGet<String>();
    format = args[1]->as<ASTLiteral &>().value.safeGet<String>();
    if (args.size() == 2 && getName() == "file")
    {
        if (format != "Distributed")
            throw Exception("Table function '" + getName() + "' allows 2 arguments only for Distributed format.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
    }
    else if (args.size() != 3 && args.size() != 4)
        throw Exception("Table function '" + getName() + "' requires 3 or 4 arguments: filename, format, structure and compression method (default auto).",
            ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
    if (args.size() > 2)
        structure = args[2]->as<ASTLiteral &>().value.safeGet<String>();
    if (args.size() == 4)
        compression_method = args[3]->as<ASTLiteral &>().value.safeGet<String>();
}
StoragePtr ITableFunctionFileLike::executeImpl(const ASTPtr & , const Context & context, const std::string & table_name, ColumnsDescription ) const