You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +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:
@ -22,10 +22,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <vector>
|
||||
#include <unordered_set>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
@ -56,6 +59,7 @@ namespace execplan
|
||||
typedef execplan::CalpontSystemCatalog::ColType Type;
|
||||
typedef datatypes::Decimal IDB_Decimal;
|
||||
|
||||
using IncludeSet = std::unordered_set<std::string>;
|
||||
/**
|
||||
* @brief IDB_Regex struct
|
||||
*
|
||||
@ -209,6 +213,7 @@ class TreeNode
|
||||
*/
|
||||
virtual bool operator!=(const TreeNode* t) const = 0;
|
||||
|
||||
virtual std::string toCppCode(IncludeSet& includes) const = 0;
|
||||
// derivedTable mutator and accessor
|
||||
virtual const std::string& derivedTable() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user