Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

处理mongodb 语句长度超过4000执行失败的问题 #2239

Closed
wants to merge 14 commits into from
Closed

处理mongodb 语句长度超过4000执行失败的问题 #2239

wants to merge 14 commits into from

Conversation

woshiyanghai
Copy link
Contributor

mongodb 在语句超过4000时,使用load 命令执行语句,最后返回的结果中会包含一个true,
image
导致最后在返回结果集判断返回行数,json 解析失败。整个工单执行状态返回失败。

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (293e26e) 75.53% compared to head (d89cf13) 75.52%.
Report is 1 commits behind head on master.

❗ Current head d89cf13 differs from pull request most recent head 834c9c1. Consider uploading reports for the commit 834c9c1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2239      +/-   ##
==========================================
- Coverage   75.53%   75.52%   -0.01%     
==========================================
  Files         107      107              
  Lines       15455    15455              
==========================================
- Hits        11674    11673       -1     
- Misses       3781     3782       +1     
Files Changed Coverage Δ
sql/engines/mongo.py 60.92% <0.00%> (-0.08%) ⬇️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@woshiyanghai
Copy link
Contributor Author

修改格式重新pr

@woshiyanghai woshiyanghai reopened this Aug 16, 2023
@LeoQuote
Copy link
Collaborator

lint 修一下

@woshiyanghai
Copy link
Contributor Author

这个lint失败的原因是什么?

@LeoQuote
Copy link
Collaborator

你执行 black sql/engines/mongo.py 就可以修好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants