17 #ifndef COLUMN_DESCRIPTOR_H
18 #define COLUMN_DESCRIPTOR_H
23 #include "../Shared/StringTransform.h"
24 #include "../Shared/sqltypes.h"
25 #include "../Shared/toString.h"
54 , columnName(columnName)
56 , columnType(columnType)
79 CHECK(value.front() ==
'{' && value.back() ==
'}');
80 value = value.substr(1, value.length() - 2);
82 auto elements =
split(value,
", ");
84 for (
size_t i = 0; i < elements.size(); ++i) {
85 value +=
"'" + elements[i] +
"'";
86 if (i != elements.size() - 1) {
92 value =
"ARRAY[" + value +
"]";
101 #endif // COLUMN_DESCRIPTOR
HOST DEVICE SQLTypes get_subtype() const
ColumnDescriptor(const int tableId, const int columnId, const std::string &columnName, const SQLTypeInfo columnType)
std::string getDefaultValueLiteral() const
specifies the content in-memory of a row in the column metadata table
std::optional< std::string > default_value
std::string typeName(const T *v)
bool g_enable_watchdog false
ColumnDescriptor(const bool isGeoPhyCol)
bool is_string_array() const
std::string toString() const
constexpr auto is_datetime(SQLTypes type)