Changeset: cf655cd30e7e for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cf655cd30e7e Modified Files: monetdb5/optimizer/Makefile.ag monetdb5/optimizer/opt_hitchhiker.c monetdb5/optimizer/opt_hitchhiker.h monetdb5/optimizer/optimizer.mal Branch: hitchhiker Log Message:
Added opt hitchhiker diffs (77 lines): diff --git a/monetdb5/optimizer/Makefile.ag b/monetdb5/optimizer/Makefile.ag --- a/monetdb5/optimizer/Makefile.ag +++ b/monetdb5/optimizer/Makefile.ag @@ -52,7 +52,8 @@ lib_optimizer = { opt_profiler.c opt_profiler.h \ opt_postfix.c opt_postfix.h \ opt_volcano.c opt_volcano.h \ - opt_wrapper.c + opt_wrapper.c \ + opt_hitchhiker.c opt_hitchhiker.h } headers_mal = { diff --git a/monetdb5/optimizer/opt_hitchhiker.c b/monetdb5/optimizer/opt_hitchhiker.c --- a/monetdb5/optimizer/opt_hitchhiker.c +++ b/monetdb5/optimizer/opt_hitchhiker.c @@ -0,0 +1,23 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright 1997 - July 2008 CWI, August 2008 - 2020 MonetDB B.V. + */ + +#include "monetdb_config.h" +#include "opt_hitchhiker.h" +#include "mal_interpreter.h" + +str +OPThitchhikerImplementation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) +{ + (void) cntxt; + (void) mb; + (void) stk; + (void) pci; + + str msg = MAL_SUCCEED; + return msg; +} \ No newline at end of file diff --git a/monetdb5/optimizer/opt_hitchhiker.h b/monetdb5/optimizer/opt_hitchhiker.h --- a/monetdb5/optimizer/opt_hitchhiker.h +++ b/monetdb5/optimizer/opt_hitchhiker.h @@ -0,0 +1,16 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright 1997 - July 2008 CWI, August 2008 - 2020 MonetDB B.V. + */ + +#ifndef _OPT_HITCHHIKER_ +#define _OPT_HITCHHIKER_ + +#include "opt_prelude.h" + +mal_export str OPThitchhikerImplementation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p); + +#endif diff --git a/monetdb5/optimizer/optimizer.mal b/monetdb5/optimizer/optimizer.mal --- a/monetdb5/optimizer/optimizer.mal +++ b/monetdb5/optimizer/optimizer.mal @@ -285,5 +285,12 @@ pattern optimizer.postfix(mod:str, fcn:s address OPTwrapper comment "Postfix the plan,e.g. pushing projections"; +#opt_hitchhiker.mal +pattern optimizer.hitchhiker():str +address OPTwrapper; +pattern optimizer.hitchhiker(mod:any_1, fcn:any_2):str +address OPTwrapper +comment "Hitchhiker optimizer: nomadic query evaluation"; + optimizer.prelude(); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list