You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4530: toCppCode() method for ParseTree and TreeNode (#2777)
* toCppCode for ParseTree and TreeNode * generated tree is compiling * Put tree constructors into tests * Minor fixes * Fixed parse + some constructors * Fixed includes, removed debug and old data * Hopefully fix clang errors * Forgot an override * More overrides
This commit is contained in:
@ -33,7 +33,6 @@ using namespace boost;
|
||||
#include "intervalcolumn.h"
|
||||
using namespace funcexp;
|
||||
|
||||
|
||||
namespace execplan
|
||||
{
|
||||
/**
|
||||
@ -68,6 +67,16 @@ const string IntervalColumn::toString() const
|
||||
return output.str();
|
||||
}
|
||||
|
||||
string IntervalColumn::toCppCode(IncludeSet& includes) const
|
||||
{
|
||||
includes.insert("intervalcolumn.h");
|
||||
stringstream ss;
|
||||
|
||||
ss << "IntervalColumn(boost::shared_ptr<ReturnedColumn>(new " << fVal->toCppCode(includes) << "), " << fIntervalType << ")";
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
ostream& operator<<(ostream& output, const IntervalColumn& rhs)
|
||||
{
|
||||
output << rhs.toString();
|
||||
|
Reference in New Issue
Block a user