Skip to content

Merge main to branch - #18325

Merged
ouyuanning merged 4 commits into
matrixorigin:refactor-operators-for-mem-reusedfrom
ouyuanning:merge-main-0826
Aug 26, 2024
Merged

ouyuanning merged 4 commits into
matrixorigin:refactor-operators-for-mem-reusedfrom
ouyuanning:merge-main-0826

Conversation

@ouyuanning

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

badboynt1 and others added 4 commits August 24, 2024 11:32
…gin#18320)

support stats calculation for decimal and timestamp column

Approved by: @aunjgr
…xorigin#18321)

对于ap query,过去有个逻辑是在运行时动态决定并发度。但是这样会导致ap pipeline必须频繁打断。
现在先移除这个逻辑,方便后续重构ap pipeline

Approved by: @ouyuanning, @triump2020, @m-schen
1. 将go版本从1.22.3升级到1.23.0
2. 升级golangci-lint版本以支持go 1.23.0,并更新其配置文件
3. 修复sca中printf相关问题。
3.1. 修复某些错误的调用,例如:`logutil.Infof` --> `logutil.Info`
3.2. 防止在生成error是错误的将message作为`fmt.Sprintf`函数的format,从而导致生成不可预期的字符串,具体如下
-  将moerr包中`NewXxxx(ctx context.Context, msg string, args ...any)`的相关函数修改为`NewXxxxf(ctx context.Context, msg string, args ...any)`以及`NewXxxx(ctx context.Context, msg string)`
-   将moerr包中`NewXxxxNoCtx(msg string, args ...any)`的相关函数修改为`NewXxxxNoCtxf(msg string, args ...any)`以及`NewXxxxNoCtx(msg string)`
5. go在1.22之后修复了forrange中loopvar的问题,现已不需要在循环中覆盖,故删除相关的代码matrixorigin@8bc380f
6. 删除了某些重复的判断matrixorigin@8bc380f
7. 修复了nilness相关的问题,具体可参考ref
8. 修复了部分shadow的问题,但是有一些无法确定,故没有修改,且在sca中暂时disable
9. 修复了一些因为错误使用`fmt.Sprintf`导致的错误的bvt result matrixorigin@a8ad671 matrixorigin@76c748b
10. 目前govet中disable的检查项有`fieldalignment`,`shadow`,`unusedwrite`

Ref:
1. https://go.dev/blog/loopvar-preview
2. https://staticcheck.dev/docs/checks#S1009
3. https://staticcheck.dev/docs/checks#S1008
5. https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness

Approved by: @daviszhen, @reusee, @zhangxu19830126, @badboynt1, @triump2020, @xzxiong, @m-schen, @jiangxinmeng1, @aptend, @qingxinhome, @fengttt, @aressu1985, @XuPeng-SH, @w-zr, @ouyuanning, @volgariver6, @LeftHandCold, @sukki37, @iamlinjunhong, @aunjgr
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