OmniSciDB  06b3bd477c
 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)
 

Function Documentation

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, kBIGINT, kBOOLEAN, kCOLUMN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, and UNREACHABLE.

Referenced by table_functions::TableFunction::getInputSQLType(), and table_functions::TableFunction::getOutputSQLType().

28  {
29  auto generate_column_type = [](const auto subtype) {
30  auto ti = SQLTypeInfo(kCOLUMN, false);
31  ti.set_subtype(subtype);
32  return ti;
33  };
34  switch (ext_arg_type) {
36  return SQLTypeInfo(kTINYINT, false);
38  return SQLTypeInfo(kSMALLINT, false);
40  return SQLTypeInfo(kINT, false);
42  return SQLTypeInfo(kBIGINT, false);
44  return SQLTypeInfo(kFLOAT, false);
46  return SQLTypeInfo(kDOUBLE, false);
48  return generate_column_type(kTINYINT);
50  return generate_column_type(kSMALLINT);
52  return generate_column_type(kINT);
54  return generate_column_type(kBIGINT);
56  return generate_column_type(kFLOAT);
58  return generate_column_type(kDOUBLE);
60  return generate_column_type(kBOOLEAN);
61  default:
62  UNREACHABLE();
63  }
64  UNREACHABLE();
65  return SQLTypeInfo(kNULLT, false);
66 }
#define UNREACHABLE()
Definition: Logger.h:241
Definition: sqltypes.h:46

+ Here is the caller graph for this function: