Update MongoDBDictionarySource.cpp

This commit is contained in:
alexey-milovidov 2018-02-07 20:49:41 +03:00 committed by GitHub
parent 95ec20d92a
commit 22263ad627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));