Monetdb user-defined optimizer pipeline