OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
table_functions::anonymous_namespace{TableFunctionsFactory.cpp} Namespace Reference

Functions

SQLTypeInfo ext_arg_pointer_type_to_type_info (const ExtArgumentType ext_arg_type)
 
SQLTypeInfo ext_arg_type_to_type_info_output (const ExtArgumentType ext_arg_type)
 
std::string drop_suffix (const std::string &str)
 

Function Documentation

std::string table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::drop_suffix ( const std::string &  str)

Definition at line 187 of file TableFunctionsFactory.cpp.

References CHECK_GT.

187  {
188  const auto idx = str.find("__");
189  if (idx == std::string::npos) {
190  return str;
191  }
192  CHECK_GT(idx, std::string::size_type(0));
193  return str.substr(0, idx);
194 }
#define CHECK_GT(x, y)
Definition: Logger.h:209
SQLTypeInfo table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_pointer_type_to_type_info ( const ExtArgumentType  ext_arg_type)

Definition at line 28 of file TableFunctionsFactory.cpp.

References ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, generate_column_list_type(), generate_column_type(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, LOG, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, ExtensionFunctionsWhitelist::toString(), UNREACHABLE, and logger::WARNING.

Referenced by table_functions::TableFunction::getInputSQLType().

28  {
29  switch (ext_arg_type) {
31  return SQLTypeInfo(kTINYINT, false);
33  return SQLTypeInfo(kSMALLINT, false);
35  return SQLTypeInfo(kINT, false);
37  return SQLTypeInfo(kBIGINT, false);
39  return SQLTypeInfo(kFLOAT, false);
41  return SQLTypeInfo(kDOUBLE, false);
43  return SQLTypeInfo(kBOOLEAN, false);
49  return generate_column_type(kINT);
72  default:
73  LOG(WARNING) << "ext_arg_pointer_type_to_type_info: ExtArgumentType `"
75  << "` conversion to SQLTypeInfo not implemented.";
76  UNREACHABLE();
77  }
78  UNREACHABLE();
79  return SQLTypeInfo(kNULLT, false);
80 }
#define LOG(tag)
Definition: Logger.h:188
auto generate_column_type(const SQLTypes subtype)
Definition: sqltypes.h:980
#define UNREACHABLE()
Definition: Logger.h:241
auto generate_column_list_type(const SQLTypes subtype)
Definition: sqltypes.h:986
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
Definition: sqltypes.h:44

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SQLTypeInfo table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_type_to_type_info_output ( const ExtArgumentType  ext_arg_type)

Definition at line 82 of file TableFunctionsFactory.cpp.

References Bool, ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, Double, Float, Int16, Int32, Int64, Int8, kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, LOG, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, ExtensionFunctionsWhitelist::toString(), UNREACHABLE, and logger::WARNING.

Referenced by table_functions::TableFunction::getOutputSQLType().

82  {
83  switch (ext_arg_type) {
88  return SQLTypeInfo(kTINYINT, false);
93  return SQLTypeInfo(kSMALLINT, false);
98  return SQLTypeInfo(kINT, false);
103  return SQLTypeInfo(kBIGINT, false);
108  return SQLTypeInfo(kFLOAT, false);
113  return SQLTypeInfo(kDOUBLE, false);
118  return SQLTypeInfo(kBOOLEAN, false);
119  default:
120  LOG(WARNING) << "ext_arg_pointer_type_to_type_info: ExtArgumentType `"
122  << "` conversion to SQLTypeInfo not implemented.";
123  UNREACHABLE();
124  }
125  UNREACHABLE();
126  return SQLTypeInfo(kNULLT, false);
127 }
#define LOG(tag)
Definition: Logger.h:188
#define UNREACHABLE()
Definition: Logger.h:241
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
Definition: sqltypes.h:44

+ Here is the call graph for this function:

+ Here is the caller graph for this function: