parent
6490aab558
commit
70f29e028d
@ -1,17 +1,19 @@
|
||||
#include "./udf.hpp"
|
||||
#include "./server/monetdb_conn.h"
|
||||
#include "./server/aggregations.h"
|
||||
#include "./server/libaquery.h"
|
||||
#include "./server/monetdb_conn.h"
|
||||
|
||||
extern "C" int __DLLEXPORT__ dllmain(Context* cxt) {
|
||||
using namespace std;
|
||||
using namespace types;
|
||||
auto server = static_cast<Server*>(cxt->alt_server);
|
||||
auto len_6SzLPm = server->cnt;
|
||||
auto sales_5fe = ColRef<int>(len_6SzLPm, server->getCol(0));
|
||||
auto a_yJz = ColRef<int>(len_6SzLPm, server->getCol(1));
|
||||
auto out_4UoFb5 = new TableInfo<value_type<decays<decltype((sd(a_yJz) + sales_5fe))>>>("out_4UoFb5");
|
||||
out_4UoFb5->get_col<0>() = (sd(a_yJz) + sales_5fe);
|
||||
print(*out_4UoFb5);
|
||||
auto len_5sGusn = server->cnt;
|
||||
auto sumc_5IN = ColRef<__int128_t>(len_5sGusn, server->getCol(0));
|
||||
auto b_79y = ColRef<int>(len_5sGusn, server->getCol(1));
|
||||
auto d_4yS = ColRef<int>(len_5sGusn, server->getCol(2));
|
||||
auto out_kio0QJ = new TableInfo<__int128_t,int,int>("out_kio0QJ");
|
||||
out_kio0QJ->get_col<0>().initfrom(sumc_5IN);
|
||||
out_kio0QJ->get_col<1>().initfrom(b_79y);
|
||||
out_kio0QJ->get_col<2>().initfrom(d_4yS);
|
||||
print(*out_kio0QJ);
|
||||
puts("done.");
|
||||
return 0;
|
||||
}
|
Binary file not shown.
Loading…
Reference in new issue