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

新增sql执行行数限制 #2366

Merged
merged 14 commits into from
Nov 6, 2023
Merged

新增sql执行行数限制 #2366

merged 14 commits into from
Nov 6, 2023

Conversation

lanheader
Copy link
Collaborator

#2365

新增sql执行行数限制

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f959849) 75.99% compared to head (6b714ef) 75.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2366      +/-   ##
==========================================
- Coverage   75.99%   75.99%   -0.01%     
==========================================
  Files         111      111              
  Lines       15749    15752       +3     
==========================================
+ Hits        11968    11970       +2     
- Misses       3781     3782       +1     
Files Coverage Δ
sql_api/api_workflow.py 81.28% <66.66%> (-0.22%) ⬇️

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

@lanheader lanheader merged commit d32d7bc into hhyo:master Nov 6, 2023
8 of 10 checks passed
@@ -69,6 +69,11 @@ def post(self, request):
check_result = check_engine.execute_check(
db_name=db_name, sql=request.data["full_sql"].strip()
)
max_sql_length = SysConfig().get("max_sql_length", default_value=10000)
if len(check_result.rows) > int(max_sql_length):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该允许设置为 0 , 也就是不做限制

@hhyo
Copy link
Owner

hhyo commented Nov 6, 2023

建议默认配置0不做限制,新加参数都尽量不改变前序版本的逻辑

其实30m左右的语句应该都没什么影响,卡死可以找找其他原因

lanheader added a commit that referenced this pull request Nov 6, 2023
@lanheader
Copy link
Collaborator Author

好的,已经修改

finovy pushed a commit to finovy/Archery that referenced this pull request Nov 10, 2023
* 新增cas登录

* 新增cas登录

* 新增cas登录

* 新增cas登录

* 新增cas登录

* black格式化

* 修改模块引用错误

* 修改模块引用错误

* 修改模块引用错误

* 新增最大SQL提交数

* Update mssql.py

格式化代码

* black 代码

---------

Co-authored-by: lanjiaxuan <lanjiaxuan@e6yun.com>
LeoQuote added a commit that referenced this pull request Nov 16, 2023
LeoQuote added a commit that referenced this pull request Nov 16, 2023
Revert "新增sql执行行数限制 (#2366)"

This reverts commit d32d7bc.
finovy pushed a commit to finovy/Archery that referenced this pull request Dec 1, 2023
Revert "新增sql执行行数限制 (hhyo#2366)"

This reverts commit d32d7bc.
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