OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_impl (const std::string &str)
 

Function Documentation

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

Definition at line 465 of file TableFunctionsFactory.cpp.

References CHECK_GT.

465  {
466  const auto idx = str.find("__");
467  if (idx == std::string::npos) {
468  return str;
469  }
470  CHECK_GT(idx, std::string::size_type(0));
471  return str.substr(0, idx);
472 }
#define CHECK_GT(x, y)
Definition: Logger.h:305
SQLTypeInfo table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_pointer_type_to_type_info ( const ExtArgumentType  ext_arg_type)

Definition at line 30 of file TableFunctionsFactory.cpp.

References ext_arg_type_to_type_info(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, and UNREACHABLE.

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

30  {
31  switch (ext_arg_type) {
33  return SQLTypeInfo(kTINYINT, false);
35  return SQLTypeInfo(kSMALLINT, false);
37  return SQLTypeInfo(kINT, false);
39  return SQLTypeInfo(kBIGINT, false);
41  return SQLTypeInfo(kFLOAT, false);
43  return SQLTypeInfo(kDOUBLE, false);
45  return SQLTypeInfo(kBOOLEAN, false);
46  default:
47  return ext_arg_type_to_type_info(ext_arg_type);
48  }
49  UNREACHABLE();
50  return SQLTypeInfo(kNULLT, false);
51 }
#define UNREACHABLE()
Definition: Logger.h:337
Definition: sqltypes.h:62
SQLTypeInfo ext_arg_type_to_type_info(const ExtArgumentType ext_arg_type)

+ 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 53 of file TableFunctionsFactory.cpp.

References ext_arg_type_to_type_info(), SQLTypeInfo::get_elem_type(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, and UNREACHABLE.

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

53  {
54  switch (ext_arg_type) {
56  return SQLTypeInfo(kTINYINT, false);
58  return SQLTypeInfo(kSMALLINT, false);
60  return SQLTypeInfo(kINT, false);
62  return SQLTypeInfo(kBIGINT, false);
64  return SQLTypeInfo(kFLOAT, false);
66  return SQLTypeInfo(kDOUBLE, false);
68  return SQLTypeInfo(kBOOLEAN, false);
69  default:
70  return ext_arg_type_to_type_info(ext_arg_type).get_elem_type();
71  }
72  UNREACHABLE();
73  return SQLTypeInfo(kNULLT, false);
74 }
#define UNREACHABLE()
Definition: Logger.h:337
Definition: sqltypes.h:62
SQLTypeInfo get_elem_type() const
Definition: sqltypes.h:963
SQLTypeInfo ext_arg_type_to_type_info(const ExtArgumentType ext_arg_type)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: