OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExtensionFunctionsWhitelist.cpp File Reference
#include "QueryEngine/ExtensionFunctionsWhitelist.h"
#include <boost/algorithm/string/join.hpp>
#include <iostream>
#include "QueryEngine/ExtensionFunctionsBinding.h"
#include "QueryEngine/JsonAccessors.h"
#include "QueryEngine/TableFunctions/TableFunctionsFactory.h"
#include "Shared/StringTransform.h"
+ Include dependency graph for ExtensionFunctionsWhitelist.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{ExtensionFunctionsWhitelist.cpp}
 

Typedefs

using SignatureMap = std::unordered_map< std::string, std::vector< ExtensionFunction >>
 

Functions

std::string anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::serialize_type (const ExtArgumentType type, bool byval=true, bool declare=false)
 
std::string anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::drop_suffix (const std::string &str)
 
SQLTypeInfo ext_arg_type_to_type_info (const ExtArgumentType ext_arg_type)
 
ExtArgumentType anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::deserialize_type (const std::string &type_name)
 
std::string toString (const ExtArgumentType &sig_type)
 

Typedef Documentation

using SignatureMap = std::unordered_map<std::string, std::vector<ExtensionFunction>>

Definition at line 676 of file ExtensionFunctionsWhitelist.cpp.

Function Documentation

SQLTypeInfo ext_arg_type_to_type_info ( const ExtArgumentType  ext_arg_type)

Definition at line 234 of file ExtensionFunctionsWhitelist.cpp.

References ArrayBool, ArrayDouble, ArrayFloat, ArrayInt16, ArrayInt32, ArrayInt64, ArrayInt8, Bool, ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, ColumnListTextEncodingDict, ColumnTextEncodingDict, Double, logger::FATAL, Float, generate_array_type(), generate_column_type(), Int16, Int32, Int64, Int8, kBIGINT, kBOOLEAN, kDOUBLE, kENCODING_DICT, kENCODING_NONE, kFLOAT, kINT, kNULLT, kSMALLINT, kTEXT, kTINYINT, LOG, anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::serialize_type(), TextEncodingDict, and TextEncodingNone.

Referenced by bind_function(), RelAlgExecutor::createTableFunctionWorkUnit(), ExtensionFunctionsWhitelist::get_ext_funcs(), anonymous_namespace{ExtensionFunctionsBinding.cpp}::match_arguments(), anonymous_namespace{ExtensionFunctionsBinding.cpp}::match_numeric_argument(), and RelAlgTranslator::translateFunction().

234  {
235  /* This function is mostly used for scalar types.
236  For non-scalar types, NULL is returned as a placeholder.
237  */
238 
239  switch (ext_arg_type) {
241  return SQLTypeInfo(kBOOLEAN, false);
243  return SQLTypeInfo(kTINYINT, false);
245  return SQLTypeInfo(kSMALLINT, false);
247  return SQLTypeInfo(kINT, false);
249  return SQLTypeInfo(kBIGINT, false);
251  return SQLTypeInfo(kFLOAT, false);
253  return SQLTypeInfo(kDOUBLE, false);
259  return generate_array_type(kINT);
263  return generate_array_type(kFLOAT);
273  return generate_column_type(kINT);
283  return generate_column_type(kTEXT, kENCODING_DICT, 0 /* comp_param */);
285  return SQLTypeInfo(kTEXT, false, kENCODING_NONE);
287  return SQLTypeInfo(kTEXT, false, kENCODING_DICT);
293  return generate_column_type(kINT);
303  return generate_column_type(kTEXT, kENCODING_DICT, 0 /* comp_param */);
304  default:
305  LOG(FATAL) << "ExtArgumentType `" << serialize_type(ext_arg_type)
306  << "` cannot be converted to SQLTypeInfo.";
307  }
308  return SQLTypeInfo(kNULLT, false);
309 }
#define LOG(tag)
Definition: Logger.h:203
auto generate_column_type(const SQLTypes subtype)
Definition: sqltypes.h:1119
auto generate_array_type(const SQLTypes subtype)
Definition: sqltypes.h:1113
Definition: sqltypes.h:52
std::string serialize_type(const ExtArgumentType type, bool byval=true, bool declare=false)
Definition: sqltypes.h:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string toString ( const ExtArgumentType sig_type)

Definition at line 745 of file ExtensionFunctionsWhitelist.cpp.

References ExtensionFunctionsWhitelist::toString().

Referenced by anonymous_namespace{SerializeToSql.cpp}::agg_to_string(), TableFunctionManager::allocate_output_buffers(), DBHandler::clear_cpu_memory(), DBHandler::clear_gpu_memory(), DBHandler::clearRenderMemory(), DBHandler::clone_session(), CodeGenerator::codegenFunctionOperCastArgs(), WindowFunctionContext::computePartition(), DBHandler::connect(), DBHandler::connect_impl(), DBHandler::create_custom_expression(), DBHandler::create_dashboard(), DBHandler::create_link(), DBHandler::create_table(), dateTimeParse(), DBHandler::delete_custom_expressions(), DBHandler::delete_dashboards(), DBHandler::detect_column_types(), DBHandler::disconnect(), Parser::CopyTableStmt::execute(), QueryPlanDagExtractor::extractQueryPlanDagImpl(), DBHandler::get_all_files_in_archive(), DBHandler::get_custom_expressions(), DBHandler::get_dashboard(), DBHandler::get_dashboard_grantees(), DBHandler::get_dashboards(), DBHandler::get_databases(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_hardware_info(), DBHandler::get_internal_table_details(), DBHandler::get_internal_table_details_for_database(), DBHandler::get_layers_in_geo_file(), DBHandler::get_link_view(), anonymous_namespace{TableFunctionCompilationContext.cpp}::get_llvm_type_from_sql_column_type(), DBHandler::get_memory(), get_node_output(), DBHandler::get_physical_tables(), DBHandler::get_result_row_for_pixel(), DBHandler::get_server_status(), DBHandler::get_session_info(), DBHandler::get_status(), DBHandler::get_table_details(), DBHandler::get_table_details_for_database(), DBHandler::get_table_epoch(), DBHandler::get_table_epoch_by_name(), DBHandler::get_table_epochs(), DBHandler::get_tables(), DBHandler::get_tables_for_database(), DBHandler::get_tables_meta(), DBHandler::get_users(), DBHandler::get_views(), DBHandler::getQueries(), QueryPlanDagExtractor::handleLeftDeepJoinTree(), DBHandler::import_geo_table(), DBHandler::import_table(), DBHandler::import_table_status(), import_export::Importer::importGDAL(), DBHandler::interrupt(), DBHandler::invalidate_cur_session(), DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_columnar_internal(), org.apache.calcite.rel.rules.OuterJoinOptViaNullRejectionRule::onMatch(), operator<<(), ColumnList< T >::operator[](), anonymous_namespace{Datum.cpp}::parseInteger(), com.mapd.parser.server.CalciteServerHandler::process(), ra_exec_unit_desc_for_caching(), ResultSetStorage::reduceOneSlot(), DBHandler::render_vega(), DBHandler::replace_dashboard(), DBHandler::set_cur_session(), DBHandler::set_execution_mode(), DBHandler::set_table_epoch(), DBHandler::set_table_epoch_by_name(), DBHandler::set_table_epochs(), DBHandler::shareOrUnshareDashboards(), DBHandler::sql_execute(), DBHandler::sql_validate(), spatial_type::suffix(), DBHandler::switch_database(), toString(), RexSubQuery::toString(), QueryPlanDagCache::translateColVarsToInfoString(), tree_string(), DBHandler::update_custom_expression(), and ScalarExprToSql::visitWindowFunction().

745  {
746  return ExtensionFunctionsWhitelist::toString(sig_type);
747 }
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")

+ Here is the call graph for this function: