This repository was archived by the owner on May 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -572,6 +572,14 @@ CalciteMgr::~CalciteMgr() {
572
572
worker_.join ();
573
573
}
574
574
575
+ CalciteMgr* CalciteMgr::get (const std::string& udf_filename, size_t calcite_max_mem_mb) {
576
+ std::call_once (instance_init_flag_, [=] {
577
+ instance_ =
578
+ std::unique_ptr<CalciteMgr>(new CalciteMgr (udf_filename, calcite_max_mem_mb));
579
+ });
580
+ return instance_.get ();
581
+ }
582
+
575
583
std::string CalciteMgr::process (
576
584
const std::string& db_name,
577
585
const std::string& sql_string,
Original file line number Diff line number Diff line change @@ -43,13 +43,7 @@ class CalciteMgr {
43
43
~CalciteMgr ();
44
44
45
45
static CalciteMgr* get (const std::string& udf_filename = " " ,
46
- size_t calcite_max_mem_mb = 1024 ) {
47
- std::call_once (instance_init_flag_, [=] {
48
- instance_ =
49
- std::unique_ptr<CalciteMgr>(new CalciteMgr (udf_filename, calcite_max_mem_mb));
50
- });
51
- return instance_.get ();
52
- }
46
+ size_t calcite_max_mem_mb = 1024 );
53
47
54
48
std::string process (const std::string& db_name,
55
49
const std::string& sql_string,
You can’t perform that action at this time.
0 commit comments