Results 2 comments of wdg

archery对mongodb的查询语法只支持比较有限的写法,因为使用`pymongo`模块然后通过eval字符串实现。复杂的语句请现用其他工具查询。

遇到同样的问题,应该是云数据库导致的,获取到的slave信息为云的ip与端口,不能直连 创建补丁 mongo.py.20211117.patch ``` python diff --git a/sql/engines/mongo.py b/sql/engines/mongo.py index 8e7143f..eef5e1a 100644 --- a/sql/engines/mongo.py +++ b/sql/engines/mongo.py @@ -295,9 +295,10 @@ class MongoEngine(EngineBase): slave_msg = self.exec_cmd(sql) if slave_msg.lower().find('undefined') < 0: sp_host...