2018-11-28 11:37:12 +00:00
|
|
|
#include "XDBCDictionarySource.h"
|
|
|
|
|
2018-06-05 19:46:49 +00:00
|
|
|
#include <Columns/ColumnString.h>
|
2018-12-10 15:25:45 +00:00
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
|
|
#include <IO/ReadWriteBufferFromHTTP.h>
|
|
|
|
#include <IO/WriteHelpers.h>
|
2023-02-03 10:54:49 +00:00
|
|
|
#include <IO/ConnectionTimeouts.h>
|
2018-12-10 15:25:45 +00:00
|
|
|
#include <Interpreters/Context.h>
|
|
|
|
#include <Poco/Net/HTTPRequest.h>
|
|
|
|
#include <Poco/Util/AbstractConfiguration.h>
|
2021-12-21 13:41:53 +00:00
|
|
|
#include <Common/LocalDateTime.h>
|
2022-04-27 15:05:45 +00:00
|
|
|
#include <Common/logger_useful.h>
|
2018-11-28 11:37:12 +00:00
|
|
|
#include "DictionarySourceFactory.h"
|
|
|
|
#include "DictionaryStructure.h"
|
2018-12-10 15:25:45 +00:00
|
|
|
#include "readInvalidateQuery.h"
|
2019-12-15 06:34:43 +00:00
|
|
|
#include "registerDictionaries.h"
|
2021-04-17 08:09:22 +00:00
|
|
|
#include <Common/escapeForFileName.h>
|
2021-10-16 14:03:50 +00:00
|
|
|
#include <QueryPipeline/QueryPipeline.h>
|
2021-10-13 18:22:02 +00:00
|
|
|
#include <Processors/Formats/IInputFormat.h>
|
2022-09-28 08:45:15 +00:00
|
|
|
#include "config.h"
|
2019-12-15 06:34:43 +00:00
|
|
|
|
2016-06-05 15:21:35 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-11-28 11:37:12 +00:00
|
|
|
namespace ErrorCodes
|
|
|
|
{
|
|
|
|
extern const int SUPPORT_IS_DISABLED;
|
2020-07-06 12:23:36 +00:00
|
|
|
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
|
2018-11-28 11:37:12 +00:00
|
|
|
}
|
|
|
|
|
2018-08-13 18:10:26 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-07-06 12:23:36 +00:00
|
|
|
ExternalQueryBuilder makeExternalQueryBuilder(const DictionaryStructure & dict_struct_,
|
|
|
|
const std::string & db_,
|
|
|
|
const std::string & schema_,
|
|
|
|
const std::string & table_,
|
2021-07-29 20:57:06 +00:00
|
|
|
const std::string & query_,
|
2020-07-06 12:23:36 +00:00
|
|
|
const std::string & where_,
|
|
|
|
IXDBCBridgeHelper & bridge_)
|
|
|
|
{
|
2021-09-13 19:11:16 +00:00
|
|
|
QualifiedTableName qualified_name{schema_, table_};
|
2020-07-06 12:23:36 +00:00
|
|
|
|
|
|
|
if (bridge_.isSchemaAllowed())
|
|
|
|
{
|
2021-09-13 19:11:16 +00:00
|
|
|
if (qualified_name.database.empty())
|
|
|
|
qualified_name = QualifiedTableName::parseFromString(qualified_name.table);
|
2020-07-06 12:23:36 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-09-13 19:11:16 +00:00
|
|
|
if (!qualified_name.database.empty())
|
2021-04-10 18:48:36 +00:00
|
|
|
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT,
|
2022-03-28 09:48:17 +00:00
|
|
|
"Dictionary source specifies a schema but schema is not supported by {}-driver",
|
2021-04-10 18:48:36 +00:00
|
|
|
bridge_.getName());
|
2020-07-06 12:23:36 +00:00
|
|
|
}
|
|
|
|
|
2021-09-13 19:11:16 +00:00
|
|
|
return {dict_struct_, db_, qualified_name.database, qualified_name.table, query_, where_, bridge_.getIdentifierQuotingStyle()};
|
2020-07-06 12:23:36 +00:00
|
|
|
}
|
2018-08-13 18:10:26 +00:00
|
|
|
}
|
2016-06-05 15:21:35 +00:00
|
|
|
|
2019-02-10 16:55:12 +00:00
|
|
|
static const UInt64 max_block_size = 8192;
|
2016-06-05 15:21:35 +00:00
|
|
|
|
|
|
|
|
2018-12-10 15:25:45 +00:00
|
|
|
XDBCDictionarySource::XDBCDictionarySource(
|
|
|
|
const DictionaryStructure & dict_struct_,
|
2021-06-10 08:34:57 +00:00
|
|
|
const Configuration & configuration_,
|
2018-12-10 15:25:45 +00:00
|
|
|
const Block & sample_block_,
|
2021-06-01 12:20:52 +00:00
|
|
|
ContextPtr context_,
|
2018-12-10 15:25:45 +00:00
|
|
|
const BridgeHelperPtr bridge_)
|
2021-04-10 23:33:54 +00:00
|
|
|
: WithContext(context_->getGlobalContext())
|
|
|
|
, log(&Poco::Logger::get(bridge_->getName() + "DictionarySource"))
|
2021-06-10 08:34:57 +00:00
|
|
|
, update_time(std::chrono::system_clock::from_time_t(0))
|
|
|
|
, dict_struct(dict_struct_)
|
|
|
|
, configuration(configuration_)
|
|
|
|
, sample_block(sample_block_)
|
2021-07-29 20:57:06 +00:00
|
|
|
, query_builder(makeExternalQueryBuilder(dict_struct, configuration.db, configuration.schema, configuration.table, configuration.query, configuration.where, *bridge_))
|
2021-06-10 08:34:57 +00:00
|
|
|
, load_all_query(query_builder.composeLoadAllQuery())
|
|
|
|
, bridge_helper(bridge_)
|
|
|
|
, bridge_url(bridge_helper->getMainURI())
|
2023-02-07 12:10:26 +00:00
|
|
|
, timeouts(ConnectionTimeouts::getHTTPTimeouts(context_->getSettingsRef(), {context_->getConfigRef().getUInt("keep_alive_timeout", DEFAULT_HTTP_KEEP_ALIVE_TIMEOUT), 0}))
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
2021-04-17 08:09:22 +00:00
|
|
|
auto url_params = bridge_helper->getURLParams(max_block_size);
|
2018-08-13 18:10:26 +00:00
|
|
|
for (const auto & [name, value] : url_params)
|
|
|
|
bridge_url.addQueryParameter(name, value);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// copy-constructor is provided in order to support cloneability
|
2018-09-28 02:46:33 +00:00
|
|
|
XDBCDictionarySource::XDBCDictionarySource(const XDBCDictionarySource & other)
|
2021-04-10 23:33:54 +00:00
|
|
|
: WithContext(other.getContext())
|
|
|
|
, log(&Poco::Logger::get(other.bridge_helper->getName() + "DictionarySource"))
|
2021-06-10 08:34:57 +00:00
|
|
|
, update_time(other.update_time)
|
|
|
|
, dict_struct(other.dict_struct)
|
|
|
|
, configuration(other.configuration)
|
|
|
|
, sample_block(other.sample_block)
|
|
|
|
, query_builder(other.query_builder)
|
|
|
|
, load_all_query(other.load_all_query)
|
|
|
|
, invalidate_query_response(other.invalidate_query_response)
|
|
|
|
, bridge_helper(other.bridge_helper)
|
|
|
|
, bridge_url(other.bridge_url)
|
|
|
|
, timeouts(other.timeouts)
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
std::string XDBCDictionarySource::getUpdateFieldAndDate()
|
2018-02-15 13:08:23 +00:00
|
|
|
{
|
|
|
|
if (update_time != std::chrono::system_clock::from_time_t(0))
|
|
|
|
{
|
2021-06-10 08:34:57 +00:00
|
|
|
time_t hr_time = std::chrono::system_clock::to_time_t(update_time) - configuration.update_lag;
|
2021-03-15 19:23:27 +00:00
|
|
|
std::string str_time = DateLUT::instance().timeToString(hr_time);
|
2018-02-15 13:08:23 +00:00
|
|
|
update_time = std::chrono::system_clock::now();
|
2021-06-10 08:34:57 +00:00
|
|
|
return query_builder.composeUpdateQuery(configuration.update_field, str_time);
|
2018-02-15 13:08:23 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
update_time = std::chrono::system_clock::now();
|
2021-07-29 20:57:06 +00:00
|
|
|
return load_all_query;
|
2018-02-15 13:08:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
QueryPipeline XDBCDictionarySource::loadAll()
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
Use fmt::runtime() for LOG_* for non constexpr
Here is oneliner:
$ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'
Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:
$ cat fmt.cocci
@@
expression log;
expression var;
@@
-LOG_DEBUG(log, var)
+LOG_DEBUG(log, fmt::runtime(var))
I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 09:10:27 +00:00
|
|
|
LOG_TRACE(log, fmt::runtime(load_all_query));
|
2021-04-17 08:09:22 +00:00
|
|
|
return loadFromQuery(bridge_url, sample_block, load_all_query);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
QueryPipeline XDBCDictionarySource::loadUpdatedAll()
|
2018-02-15 13:08:23 +00:00
|
|
|
{
|
|
|
|
std::string load_query_update = getUpdateFieldAndDate();
|
|
|
|
|
Use fmt::runtime() for LOG_* for non constexpr
Here is oneliner:
$ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'
Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:
$ cat fmt.cocci
@@
expression log;
expression var;
@@
-LOG_DEBUG(log, var)
+LOG_DEBUG(log, fmt::runtime(var))
I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 09:10:27 +00:00
|
|
|
LOG_TRACE(log, fmt::runtime(load_query_update));
|
2021-04-17 08:09:22 +00:00
|
|
|
return loadFromQuery(bridge_url, sample_block, load_query_update);
|
2018-02-15 13:08:23 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
QueryPipeline XDBCDictionarySource::loadIds(const std::vector<UInt64> & ids)
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
|
|
|
const auto query = query_builder.composeLoadIdsQuery(ids);
|
2021-04-17 08:09:22 +00:00
|
|
|
return loadFromQuery(bridge_url, sample_block, query);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
QueryPipeline XDBCDictionarySource::loadKeys(const Columns & key_columns, const std::vector<size_t> & requested_rows)
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
|
|
|
const auto query = query_builder.composeLoadKeysQuery(key_columns, requested_rows, ExternalQueryBuilder::AND_OR_CHAIN);
|
2021-04-17 08:09:22 +00:00
|
|
|
return loadFromQuery(bridge_url, sample_block, query);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
bool XDBCDictionarySource::supportsSelectiveLoad() const
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
bool XDBCDictionarySource::hasUpdateField() const
|
2018-02-15 13:08:23 +00:00
|
|
|
{
|
2021-06-10 08:34:57 +00:00
|
|
|
return !configuration.update_field.empty();
|
2018-02-15 13:08:23 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
DictionarySourcePtr XDBCDictionarySource::clone() const
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
2021-12-15 12:55:28 +00:00
|
|
|
return std::make_shared<XDBCDictionarySource>(*this);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
std::string XDBCDictionarySource::toString() const
|
2016-06-05 15:21:35 +00:00
|
|
|
{
|
2021-06-10 08:34:57 +00:00
|
|
|
const auto & where = configuration.where;
|
|
|
|
return bridge_helper->getName() + ": " + configuration.db + '.' + configuration.table + (where.empty() ? "" : ", where: " + where);
|
2016-06-05 15:21:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
bool XDBCDictionarySource::isModified() const
|
2017-05-15 14:16:10 +00:00
|
|
|
{
|
2021-06-10 08:34:57 +00:00
|
|
|
if (!configuration.invalidate_query.empty())
|
2017-05-15 14:16:10 +00:00
|
|
|
{
|
2021-06-10 08:34:57 +00:00
|
|
|
auto response = doInvalidateQuery(configuration.invalidate_query);
|
2021-05-08 16:09:17 +00:00
|
|
|
if (invalidate_query_response == response) //-V1051
|
2017-05-15 14:16:10 +00:00
|
|
|
return false;
|
|
|
|
invalidate_query_response = response;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
std::string XDBCDictionarySource::doInvalidateQuery(const std::string & request) const
|
2017-05-15 14:16:10 +00:00
|
|
|
{
|
2018-08-10 04:02:56 +00:00
|
|
|
Block invalidate_sample_block;
|
2017-12-14 01:43:19 +00:00
|
|
|
ColumnPtr column(ColumnString::create());
|
2018-08-10 04:02:56 +00:00
|
|
|
invalidate_sample_block.insert(ColumnWithTypeAndName(column, std::make_shared<DataTypeString>(), "Sample Block"));
|
2018-09-12 21:34:48 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
bridge_helper->startBridgeSync();
|
2018-08-14 10:33:41 +00:00
|
|
|
|
2018-09-28 02:46:33 +00:00
|
|
|
auto invalidate_url = bridge_helper->getMainURI();
|
2021-04-17 08:09:22 +00:00
|
|
|
auto url_params = bridge_helper->getURLParams(max_block_size);
|
2018-09-12 21:34:48 +00:00
|
|
|
for (const auto & [name, value] : url_params)
|
|
|
|
invalidate_url.addQueryParameter(name, value);
|
|
|
|
|
2021-09-16 17:40:42 +00:00
|
|
|
return readInvalidateQuery(QueryPipeline(loadFromQuery(invalidate_url, invalidate_sample_block, request)));
|
2018-08-13 18:10:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
QueryPipeline XDBCDictionarySource::loadFromQuery(const Poco::URI & url, const Block & required_sample_block, const std::string & query) const
|
2018-08-13 18:10:26 +00:00
|
|
|
{
|
2018-09-28 02:46:33 +00:00
|
|
|
bridge_helper->startBridgeSync();
|
2021-04-17 08:09:22 +00:00
|
|
|
|
|
|
|
auto write_body_callback = [required_sample_block, query](std::ostream & os)
|
|
|
|
{
|
|
|
|
os << "sample_block=" << escapeForFileName(required_sample_block.getNamesAndTypesList().toString());
|
|
|
|
os << "&";
|
|
|
|
os << "query=" << escapeForFileName(query);
|
|
|
|
};
|
|
|
|
|
2021-10-28 10:28:05 +00:00
|
|
|
auto read_buf = std::make_unique<ReadWriteBufferFromHTTP>(
|
|
|
|
url, Poco::Net::HTTPRequest::HTTP_POST, write_body_callback, timeouts, credentials);
|
2021-10-11 16:11:50 +00:00
|
|
|
auto format = getContext()->getInputFormat(IXDBCBridgeHelper::DEFAULT_FORMAT, *read_buf, required_sample_block, max_block_size);
|
2021-08-05 18:08:52 +00:00
|
|
|
format->addBuffer(std::move(read_buf));
|
2016-06-05 15:21:35 +00:00
|
|
|
|
2022-05-20 19:49:31 +00:00
|
|
|
return QueryPipeline(std::move(format));
|
2021-08-05 18:08:52 +00:00
|
|
|
}
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-11-28 11:37:12 +00:00
|
|
|
void registerDictionarySourceXDBC(DictionarySourceFactory & factory)
|
|
|
|
{
|
2020-03-23 02:12:31 +00:00
|
|
|
auto create_table_source = [=](const DictionaryStructure & dict_struct,
|
2020-05-08 14:11:19 +00:00
|
|
|
const Poco::Util::AbstractConfiguration & config,
|
|
|
|
const std::string & config_prefix,
|
|
|
|
Block & sample_block,
|
2021-08-12 15:16:55 +00:00
|
|
|
ContextPtr global_context,
|
2020-08-15 03:10:57 +00:00
|
|
|
const std::string & /* default_database */,
|
2020-05-08 14:11:19 +00:00
|
|
|
bool /* check_config */) -> DictionarySourcePtr {
|
|
|
|
#if USE_ODBC
|
2018-12-10 15:25:45 +00:00
|
|
|
BridgeHelperPtr bridge = std::make_shared<XDBCBridgeHelper<ODBCBridgeMixin>>(
|
2023-01-19 00:36:25 +00:00
|
|
|
global_context,
|
|
|
|
global_context->getSettings().http_receive_timeout,
|
|
|
|
config.getString(config_prefix + ".odbc.connection_string"),
|
|
|
|
config.getBool(config_prefix + ".settings.odbc_bridge_use_connection_pooling",
|
|
|
|
global_context->getSettingsRef().odbc_bridge_use_connection_pooling));
|
2021-06-10 08:34:57 +00:00
|
|
|
|
|
|
|
std::string settings_config_prefix = config_prefix + ".odbc";
|
|
|
|
|
|
|
|
XDBCDictionarySource::Configuration configuration
|
|
|
|
{
|
|
|
|
.db = config.getString(settings_config_prefix + ".db", ""),
|
|
|
|
.schema = config.getString(settings_config_prefix + ".schema", ""),
|
2021-07-29 20:57:06 +00:00
|
|
|
.table = config.getString(settings_config_prefix + ".table", ""),
|
|
|
|
.query = config.getString(settings_config_prefix + ".query", ""),
|
2021-06-10 08:34:57 +00:00
|
|
|
.where = config.getString(settings_config_prefix + ".where", ""),
|
|
|
|
.invalidate_query = config.getString(settings_config_prefix + ".invalidate_query", ""),
|
|
|
|
.update_field = config.getString(settings_config_prefix + ".update_field", ""),
|
|
|
|
.update_lag = config.getUInt64(settings_config_prefix + ".update_lag", 1)
|
|
|
|
};
|
|
|
|
|
2021-08-12 15:16:55 +00:00
|
|
|
return std::make_unique<XDBCDictionarySource>(dict_struct, configuration, sample_block, global_context, bridge);
|
2018-11-28 11:37:12 +00:00
|
|
|
#else
|
2018-11-29 14:37:56 +00:00
|
|
|
(void)dict_struct;
|
|
|
|
(void)config;
|
|
|
|
(void)config_prefix;
|
|
|
|
(void)sample_block;
|
2021-08-12 15:16:55 +00:00
|
|
|
(void)global_context;
|
2021-04-10 18:48:36 +00:00
|
|
|
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
|
|
|
"Dictionary source of type `odbc` is disabled because poco library was built without ODBC support.");
|
2018-11-28 11:37:12 +00:00
|
|
|
#endif
|
|
|
|
};
|
2020-03-23 02:12:31 +00:00
|
|
|
factory.registerSource("odbc", create_table_source);
|
2018-11-28 11:37:12 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:09:22 +00:00
|
|
|
|
2018-11-28 11:37:12 +00:00
|
|
|
void registerDictionarySourceJDBC(DictionarySourceFactory & factory)
|
|
|
|
{
|
2020-03-23 02:12:31 +00:00
|
|
|
auto create_table_source = [=](const DictionaryStructure & /* dict_struct */,
|
2018-11-28 11:37:12 +00:00
|
|
|
const Poco::Util::AbstractConfiguration & /* config */,
|
|
|
|
const std::string & /* config_prefix */,
|
|
|
|
Block & /* sample_block */,
|
2021-08-12 15:16:55 +00:00
|
|
|
ContextPtr /* global_context */,
|
2020-08-15 03:10:57 +00:00
|
|
|
const std::string & /* default_database */,
|
2021-05-24 21:27:24 +00:00
|
|
|
bool /* created_from_ddl */) -> DictionarySourcePtr {
|
2021-04-10 18:48:36 +00:00
|
|
|
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
|
|
|
"Dictionary source of type `jdbc` is disabled until consistent support for nullable fields.");
|
2018-11-28 11:37:12 +00:00
|
|
|
};
|
2020-03-23 02:12:31 +00:00
|
|
|
factory.registerSource("jdbc", create_table_source);
|
2018-11-28 11:37:12 +00:00
|
|
|
}
|
|
|
|
|
2021-08-06 08:41:45 +00:00
|
|
|
}
|