Open guo-shaoge opened 3 years ago
As the output said, we have some minor mistakes when defining error code:
ErrPatternNotMatch
, which didn't use dbterror.ClassOptimizer.NewStd()
to define it.ErrNoDB
, which defined in multiple package(plannercore
and expression
).Also we need to fix tools/check/check-errdoc.sh
to let CI detect this situation.
Do we still need check-errdoc.sh
now? Seems we exists a lot of duplicate error code now and it's not easy to fix.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
cd $working_dir/tidb && tools/check/check-errdoc.sh
2. What did you expect to see? (Required)
Generate successfully
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master