OmniSciDB
a5dc49c757
|
Classes | |
struct | ForceDisconnect |
struct | ProjectionTokensForCompletion |
Functions | |
bool | dashboard_exists (const Catalog_Namespace::Catalog &cat, const int32_t user_id, const std::string &dashboard_name) |
ProjectionTokensForCompletion | extract_projection_tokens_for_completion (const std::string &sql) |
std::string | dump_table_col_names (const std::map< std::string, std::vector< std::string >> &table_col_names) |
TTableRefreshInfo | get_refresh_info (const TableDescriptor *td) |
ScopeGuard | pause_and_resume_executor_queue () |
void | check_table_not_sharded (const TableDescriptor *td) |
void | check_valid_column_names (const std::list< const ColumnDescriptor * > &descs, const std::vector< std::string > &column_names) |
std::vector< int > | column_ids_by_names (const std::list< const ColumnDescriptor * > &descs, const std::vector< std::string > &column_names) |
void | log_cache_size (const Catalog_Namespace::Catalog &cat) |
void | log_system_cpu_memory_status (std::string const &query, const Catalog_Namespace::Catalog &cat) |
std::string | get_load_tag (const std::string &load_tag, const std::string &table_name) |
std::string | get_import_tag (const std::string &import_tag, const std::string &table_name, const std::string &file_path) |
size_t | get_column_size (const TColumn &column) |
RecordBatchVector | loadArrowStream (const std::string &stream) |
void | add_vsi_network_prefix (std::string &path) |
void | add_vsi_geo_prefix (std::string &path) |
void | add_vsi_archive_prefix (std::string &path) |
std::string | remove_vsi_prefixes (const std::string &path_in) |
bool | path_is_relative (const std::string &path) |
bool | path_has_valid_filename (const std::string &path) |
bool | is_a_supported_geo_file (const std::string &path) |
bool | is_a_supported_archive_file (const std::string &path) |
std::string | find_first_geo_file_in_archive (const std::string &archive_path, const import_export::CopyParams ©_params) |
bool | is_local_file (const std::string &file_path) |
void | validate_import_file_path_if_local (const std::string &file_path) |
std::unique_ptr < Catalog_Namespace::CustomExpression > | create_custom_expr_from_thrift_obj (const TCustomExpression &t_custom_expr, const Catalog &catalog) |
TCustomExpression | create_thrift_obj_from_custom_expr (const CustomExpression &custom_expr, const Catalog &catalog) |
bool | TTypeInfo_IsGeo (const TDatumType::type &t) |
std::string | TTypeInfo_TypeToString (const TDatumType::type &t) |
std::string | get_mismatch_attr_warning_text (const std::string &table_name, const std::string &file_path, const std::string &column_name, const std::string &attr, const std::string &got, const std::string &expected) |
bool | check_and_reset_in_memory_system_table (const Catalog &catalog, const TableDescriptor &td) |
void | check_in_memory_system_table_query (const std::vector< std::vector< std::string >> &selected_tables) |
void anonymous_namespace{DBHandler.cpp}::add_vsi_archive_prefix | ( | std::string & | path | ) |
Definition at line 4212 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
void anonymous_namespace{DBHandler.cpp}::add_vsi_geo_prefix | ( | std::string & | path | ) |
Definition at line 4205 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
void anonymous_namespace{DBHandler.cpp}::add_vsi_network_prefix | ( | std::string & | path | ) |
Definition at line 4183 of file DBHandler.cpp.
References Geospatial::GDAL::supportsNetworkFileAccess(), and THROW_DB_EXCEPTION.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
bool anonymous_namespace{DBHandler.cpp}::check_and_reset_in_memory_system_table | ( | const Catalog & | catalog, |
const TableDescriptor & | td | ||
) |
Definition at line 6843 of file DBHandler.cpp.
References g_enable_system_tables, Catalog_Namespace::Catalog::getMetadataForTable(), lockmgr::TableLockMgrImpl< TableDataLockMgr >::getWriteLockForTable(), lockmgr::TableLockMgrImpl< TableSchemaLockMgr >::getWriteLockForTable(), TableDescriptor::is_in_memory_system_table, Catalog_Namespace::Catalog::removeFragmenterForTable(), TableDescriptor::tableId, and TableDescriptor::tableName.
Referenced by check_in_memory_system_table_query(), and DBHandler::checkInMemorySystemTableQuery().
void anonymous_namespace{DBHandler.cpp}::check_in_memory_system_table_query | ( | const std::vector< std::vector< std::string >> & | selected_tables | ) |
Definition at line 6864 of file DBHandler.cpp.
References CHECK, check_and_reset_in_memory_system_table(), Catalog_Namespace::SysCatalog::getCatalog(), Catalog_Namespace::SysCatalog::instance(), and shared::kInfoSchemaDbName.
Referenced by DBHandler::parse_to_ra().
void anonymous_namespace{DBHandler.cpp}::check_table_not_sharded | ( | const TableDescriptor * | td | ) |
Definition at line 3099 of file DBHandler.cpp.
References TableDescriptor::nShards.
Referenced by DBHandler::prepare_loader_generic().
void anonymous_namespace{DBHandler.cpp}::check_valid_column_names | ( | const std::list< const ColumnDescriptor * > & | descs, |
const std::vector< std::string > & | column_names | ||
) |
Definition at line 3105 of file DBHandler.cpp.
References setup::name, THROW_DB_EXCEPTION, and to_lower().
Referenced by DBHandler::prepare_loader_generic().
std::vector<int> anonymous_namespace{DBHandler.cpp}::column_ids_by_names | ( | const std::list< const ColumnDescriptor * > & | descs, |
const std::vector< std::string > & | column_names | ||
) |
Definition at line 3131 of file DBHandler.cpp.
References THROW_DB_EXCEPTION, and to_lower().
Referenced by DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_arrow(), and DBHandler::load_table_binary_columnar().
std::unique_ptr<Catalog_Namespace::CustomExpression> anonymous_namespace{DBHandler.cpp}::create_custom_expr_from_thrift_obj | ( | const TCustomExpression & | t_custom_expr, |
const Catalog & | catalog | ||
) |
Definition at line 4582 of file DBHandler.cpp.
References CHECK, Catalog_Namespace::Catalog::getMetadataForTable(), and THROW_DB_EXCEPTION.
Referenced by DBHandler::create_custom_expression().
TCustomExpression anonymous_namespace{DBHandler.cpp}::create_thrift_obj_from_custom_expr | ( | const CustomExpression & | custom_expr, |
const Catalog & | catalog | ||
) |
Definition at line 4601 of file DBHandler.cpp.
References CHECK, Catalog_Namespace::CustomExpression::data_source_id, Catalog_Namespace::CustomExpression::data_source_type, Catalog_Namespace::CustomExpression::expression_json, Catalog_Namespace::Catalog::getMetadataForTable(), Catalog_Namespace::CustomExpression::id, Catalog_Namespace::CustomExpression::is_deleted, LOG, Catalog_Namespace::CustomExpression::name, TableDescriptor::tableName, and logger::WARNING.
Referenced by DBHandler::get_custom_expressions().
bool anonymous_namespace{DBHandler.cpp}::dashboard_exists | ( | const Catalog_Namespace::Catalog & | cat, |
const int32_t | user_id, | ||
const std::string & | dashboard_name | ||
) |
Definition at line 152 of file DBHandler.cpp.
References Catalog_Namespace::Catalog::getMetadataForDashboard(), and to_string().
Referenced by DBHandler::create_dashboard().
std::string anonymous_namespace{DBHandler.cpp}::dump_table_col_names | ( | const std::map< std::string, std::vector< std::string >> & | table_col_names | ) |
Definition at line 2304 of file DBHandler.cpp.
Referenced by DBHandler::get_result_row_for_pixel().
ProjectionTokensForCompletion anonymous_namespace{DBHandler.cpp}::extract_projection_tokens_for_completion | ( | const std::string & | sql | ) |
Definition at line 1637 of file DBHandler.cpp.
References split(), and to_upper().
Referenced by DBHandler::get_completion_hints().
std::string anonymous_namespace{DBHandler.cpp}::find_first_geo_file_in_archive | ( | const std::string & | archive_path, |
const import_export::CopyParams & | copy_params | ||
) |
Definition at line 4291 of file DBHandler.cpp.
References import_export::Importer::gdalGetAllFilesInArchive(), logger::INFO, is_a_supported_geo_file(), LOG, and remove_vsi_prefixes().
Referenced by DBHandler::detect_column_types(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
size_t anonymous_namespace{DBHandler.cpp}::get_column_size | ( | const TColumn & | column | ) |
Definition at line 3454 of file DBHandler.cpp.
Referenced by DBHandler::load_table_binary_columnar().
std::string anonymous_namespace{DBHandler.cpp}::get_import_tag | ( | const std::string & | import_tag, |
const std::string & | table_name, | ||
const std::string & | file_path | ||
) |
Definition at line 3315 of file DBHandler.cpp.
Referenced by DBHandler::import_table(), and DBHandler::importGeoTableSingle().
std::string anonymous_namespace{DBHandler.cpp}::get_load_tag | ( | const std::string & | load_tag, |
const std::string & | table_name | ||
) |
Definition at line 3309 of file DBHandler.cpp.
Referenced by DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_arrow(), and DBHandler::load_table_binary_columnar().
std::string anonymous_namespace{DBHandler.cpp}::get_mismatch_attr_warning_text | ( | const std::string & | table_name, |
const std::string & | file_path, | ||
const std::string & | column_name, | ||
const std::string & | attr, | ||
const std::string & | got, | ||
const std::string & | expected | ||
) |
Definition at line 5385 of file DBHandler.cpp.
Referenced by DBHandler::importGeoTableSingle().
TTableRefreshInfo anonymous_namespace{DBHandler.cpp}::get_refresh_info | ( | const TableDescriptor * | td | ) |
Definition at line 2463 of file DBHandler.cpp.
References QueryRunner::ALL, foreign_storage::ForeignTable::ALL_REFRESH_UPDATE_TYPE, foreign_storage::ForeignTable::APPEND_REFRESH_UPDATE_TYPE, CHECK, shared::convert_temporal_to_iso_format(), TableDescriptor::isForeignTable(), kTIMESTAMP, foreign_storage::ForeignTable::MANUAL_REFRESH_TIMING_TYPE, foreign_storage::ForeignTable::NULL_REFRESH_TIME, foreign_storage::ForeignTable::REFRESH_INTERVAL_KEY, foreign_storage::ForeignTable::REFRESH_START_DATE_TIME_KEY, foreign_storage::ForeignTable::REFRESH_TIMING_TYPE_KEY, foreign_storage::ForeignTable::REFRESH_UPDATE_TYPE_KEY, foreign_storage::ForeignTable::SCHEDULE_REFRESH_TIMING_TYPE, and UNREACHABLE.
Referenced by DBHandler::get_table_details_impl().
bool anonymous_namespace{DBHandler.cpp}::is_a_supported_archive_file | ( | const std::string & | path | ) |
Definition at line 4278 of file DBHandler.cpp.
References path_has_valid_filename().
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
bool anonymous_namespace{DBHandler.cpp}::is_a_supported_geo_file | ( | const std::string & | path | ) |
Definition at line 4262 of file DBHandler.cpp.
References path_has_valid_filename().
Referenced by find_first_geo_file_in_archive().
bool anonymous_namespace{DBHandler.cpp}::is_local_file | ( | const std::string & | file_path | ) |
Definition at line 4326 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), and validate_import_file_path_if_local().
RecordBatchVector anonymous_namespace{DBHandler.cpp}::loadArrowStream | ( | const std::string & | stream | ) |
Definition at line 3576 of file DBHandler.cpp.
References ARROW_ASSIGN_OR_THROW, ARROW_THRIFT_THROW_NOT_OK, logger::ERROR, and LOG.
Referenced by DBHandler::load_table_binary_arrow().
void anonymous_namespace{DBHandler.cpp}::log_cache_size | ( | const Catalog_Namespace::Catalog & | cat | ) |
Definition at line 3167 of file DBHandler.cpp.
References BASELINE_HT, BBOX_INTERSECT_AUTO_TUNER_PARAM, BBOX_INTERSECT_HT, CHUNK_METADATA, DataRecyclerUtil::CPU_DEVICE_IDENTIFIER, BoundingBoxIntersectJoinHashTable::getBoundingBoxIntersectTuningParamCache(), DataRecycler< CACHED_ITEM_TYPE, META_INFO_TYPE >::getCurrentCacheSizeForDevice(), Executor::getExecutor(), BoundingBoxIntersectJoinHashTable::getHashTableCache(), PerfectJoinHashTable::getHashTableCache(), BaselineJoinHashTable::getHashTableCache(), QueryEngine::getInstance(), Catalog_Namespace::Catalog::getTotalMemorySizeForDictionariesForDatabase(), logger::INFO, LOG, PERFECT_HT, and Executor::UNITARY_EXECUTOR_ID.
Referenced by log_system_cpu_memory_status().
void anonymous_namespace{DBHandler.cpp}::log_system_cpu_memory_status | ( | std::string const & | query, |
const Catalog_Namespace::Catalog & | cat | ||
) |
Definition at line 3226 of file DBHandler.cpp.
References g_allow_memory_status_log, Catalog_Namespace::Catalog::getDataMgr(), Data_Namespace::DataMgr::getSystemMemoryUsage(), logger::INFO, LOG, and log_cache_size().
Referenced by DBHandler::import_table(), DBHandler::importGeoTableSingle(), DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_arrow(), DBHandler::load_table_binary_columnar(), and DBHandler::sql_execute_impl().
bool anonymous_namespace{DBHandler.cpp}::path_has_valid_filename | ( | const std::string & | path | ) |
Definition at line 4254 of file DBHandler.cpp.
References nvtx_helpers::anonymous_namespace{nvtx_helpers.cpp}::filename().
Referenced by is_a_supported_archive_file(), and is_a_supported_geo_file().
bool anonymous_namespace{DBHandler.cpp}::path_is_relative | ( | const std::string & | path | ) |
Definition at line 4246 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::importGeoTableSingle().
ScopeGuard anonymous_namespace{DBHandler.cpp}::pause_and_resume_executor_queue | ( | ) |
Definition at line 2873 of file DBHandler.cpp.
References g_enable_executor_resource_mgr, Executor::pause_executor_queue(), and Executor::resume_executor_queue().
Referenced by DBHandler::clear_cpu_memory(), DBHandler::clear_gpu_memory(), and DBHandler::clearRenderMemory().
std::string anonymous_namespace{DBHandler.cpp}::remove_vsi_prefixes | ( | const std::string & | path_in | ) |
Definition at line 4224 of file DBHandler.cpp.
Referenced by find_first_geo_file_in_archive().
bool anonymous_namespace{DBHandler.cpp}::TTypeInfo_IsGeo | ( | const TDatumType::type & | t | ) |
Definition at line 5373 of file DBHandler.cpp.
Referenced by DBHandler::importGeoTableSingle().
std::string anonymous_namespace{DBHandler.cpp}::TTypeInfo_TypeToString | ( | const TDatumType::type & | t | ) |
Definition at line 5379 of file DBHandler.cpp.
Referenced by DBHandler::importGeoTableSingle().
void anonymous_namespace{DBHandler.cpp}::validate_import_file_path_if_local | ( | const std::string & | file_path | ) |
Definition at line 4332 of file DBHandler.cpp.
References ddl_utils::IMPORT, is_local_file(), and ddl_utils::validate_allowed_file_path().
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), DBHandler::import_table(), and DBHandler::importGeoTableSingle().