| 21 | }; |
| 22 | |
| 23 | static common::offset_t internalTableFunc(const TableFuncMorsel& /*morsel*/, |
| 24 | const TableFuncInput& input, common::DataChunk& output) { |
| 25 | DASSERT(output.getNumValueVectors() == 2); |
| 26 | auto bmInfoBindData = input.bindData->constPtrCast<BMInfoBindData>(); |
| 27 | output.getValueVectorMutable(0).setValue<uint64_t>(0, bmInfoBindData->memLimit); |
| 28 | output.getValueVectorMutable(1).setValue<uint64_t>(0, bmInfoBindData->memUsage); |
| 29 | return 1; |
| 30 | } |
| 31 | |
| 32 | static std::unique_ptr<TableFuncBindData> bindFunc(const main::ClientContext* context, |
| 33 | const TableFuncBindInput* input) { |