Adjust the log level and returned value when cacheableChecker
check *ast.TableName
nodes
#46760
Labels
affects-6.5
affects-7.1
epic/plan-cache
severity/minor
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
TableByName
encounters an error, we need to adjust the log level and supplement the error log. Because this error does not affect execution results.tidb/planner/core/plan_cacheable_checker.go
Lines 557 to 609 in 41d1ec0
TableByName
, I think it makes sense to return true2. What did you expect to see? (Required)
Change this log to a warning and add some info to check the cause of this error later.
3. What did you see instead (Required)
logutil.BgLogger().Error("Error occur in checking cacheable", zap.Error(err))
4. What is your TiDB version? (Required)
Release Version: v7.4.0-alpha-292-g5cbcc86e50
Edition: Community
Git Commit Hash: 5cbcc86
The text was updated successfully, but these errors were encountered: