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"
56 , columnName(columnName)
58 , columnType(columnType)
83 CHECK(value.front() ==
'{' && value.back() ==
'}');
84 value = value.substr(1, value.length() - 2);
86 auto elements =
split(value,
", ");
88 for (
size_t i = 0; i < elements.size(); ++i) {
89 value +=
"'" + elements[i] +
"'";
90 if (i != elements.size() - 1) {
96 value =
"ARRAY[" + value +
"]";
105 #endif // COLUMN_DESCRIPTOR
HOST DEVICE SQLTypes get_subtype() const
std::string getDefaultValueLiteral() const
ColumnDescriptor(const int tableId, const int columnId, const std::string &columnName, const SQLTypeInfo columnType, int32_t db_id)
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)