This commit is contained in:
vdimir 2024-08-13 10:40:09 +00:00
parent 6358dac156
commit 75547ea2d5
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
3 changed files with 2 additions and 5 deletions

3
.gitmodules vendored
View File

@ -381,5 +381,4 @@
url = https://github.com/ClickHouse/numactl.git url = https://github.com/ClickHouse/numactl.git
[submodule "contrib/mongo-c-driver"] [submodule "contrib/mongo-c-driver"]
path = contrib/mongo-c-driver path = contrib/mongo-c-driver
url = https://github.com/allmazz/mongo-c-driver.git url = https://github.com/ClickHouse/mongo-c-driver.git
branch = freebsd-compatability

View File

@ -9,8 +9,6 @@
#include <Processors/Sources/MongoDBSource.h> #include <Processors/Sources/MongoDBSource.h>
#include <Storages/NamedCollectionsHelpers.h> #include <Storages/NamedCollectionsHelpers.h>
#include <Storages/ExternalDataSourceConfiguration.h>
#include <Storages/StorageMongoDBSocketFactory.h>
#include <bsoncxx/builder/basic/array.hpp> #include <bsoncxx/builder/basic/array.hpp>
using bsoncxx::builder::basic::kvp; using bsoncxx::builder::basic::kvp;

View File

@ -258,7 +258,7 @@ QueryPipeline MongoDBPocoLegacyDictionarySource::loadKeys(const Columns & key_co
} }
case AttributeUnderlyingType::String: case AttributeUnderlyingType::String:
{ {
String loaded_str((*key_columns[attribute_index])[row_idx].get<String>()); String loaded_str((*key_columns[attribute_index])[row_idx].safeGet<String>());
/// Convert string to ObjectID /// Convert string to ObjectID
if (key_attribute.is_object_id) if (key_attribute.is_object_id)
{ {