```
milovidov@milovidov-desktop:~/work/ClickHouse/benchmark/clickhouse-benchmark$ clickhouse-local 
ClickHouse local version 22.7.1.1.

milovidov-desktop :) SELECT filesystemAvailable()

SELECT filesystemAvailable()

Query id: 3ef2d5d8-b3e7-470d-a1e0-e6146f18b9b8


0 rows in set. Elapsed: 0.145 sec. 

Received exception:
Code: 1001. DB::Exception: Poco::NotFoundException: Not found. (STD_EXCEPTION)
```

And they give inferior error message.
#include <Functions/IFunction.h>
#include <Functions/FunctionFactory.h>
#include <DataTypes/DataTypesNumber.h>
#include <Interpreters/Context.h>
#include <filesystem>
#include <Poco/Util/AbstractConfiguration.h>
namespace DB
{
namespace
{
struct FilesystemAvailable
{
    static constexpr auto name = "filesystemAvailable";
    static std::uintmax_t get(const std::filesystem::space_info & spaceinfo) { return spaceinfo.available; }
};
struct FilesystemFree
{
    static constexpr auto name = "filesystemFree";
    static std::uintmax_t get(const std::filesystem::space_info & spaceinfo) { return spaceinfo.free; }
};
struct FilesystemCapacity
{
    static constexpr auto name = "filesystemCapacity";
    static std::uintmax_t get(const std::filesystem::space_info & spaceinfo) { return spaceinfo.capacity; }
};
template <typename Impl>
class FilesystemImpl : public IFunction