mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Update MongoDBDictionarySource.cpp
This commit is contained in:
parent
95ec20d92a
commit
22263ad627
@ -263,7 +263,6 @@ BlockInputStreamPtr MongoDBDictionarySource::loadKeys(
|
||||
case AttributeUnderlyingType::String:
|
||||
String _str(get<String>((*key_columns[attr.first])[row_idx]));
|
||||
/// Convert string to ObjectID
|
||||
/// TODO: add adequate check of objectid
|
||||
if (attr.second.is_object_id)
|
||||
{
|
||||
Poco::MongoDB::ObjectId::Ptr _id(new Poco::MongoDB::ObjectId(_str));
|
||||
|
Loading…
Reference in New Issue
Block a user