Fix style check

This commit is contained in:
vdimir 2024-07-30 10:49:50 +00:00
parent 9425be31b3
commit 6db3d54f9c
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 2 additions and 5 deletions

View File

@ -184,17 +184,13 @@ std::optional<bsoncxx::document::value> StorageMongoDB::visitWhereFunction(const
if (func->getArguments().getNodes().empty())
return {};
std::cout << func->dumpTree() << std::endl;
if (const auto & column = func->getArguments().getNodes().at(0)->as<ColumnNode>())
{
std::cout << column->dumpTree() << std::endl;
// Skip unknows columns, which don't belong to the table.
// Skip unknown columns, which don't belong to the table.
const auto & table = column->getColumnSource()->as<TableNode>();
if (!table)
return {};
std::cout << table->getStorage()->getStorageID().getFullTableName() << std::endl;
std::cout << this->getStorageID().getFullTableName() << std::endl;
// Skip columns from other tables in JOIN queries.
if (table->getStorage()->getStorageID().getFullTableName() != this->getStorageID().getFullTableName())
return {};

View File

@ -560,6 +560,7 @@ MinMax
MindsDB
mongoc
mongocxx
Mongo
Mongodb
Monotonicity
MsgPack