Repository navigation
[fix] : always build on sinkScan node for fuzzy - #16830
Conversation
* Currently, tableScan Stats updates slowly and cannot be trusted
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
Currently, tableScan Stats updates slowly and cannot be trusted, so if build on table Scan Node, we cause many many problem however, This may make some optimizations impossible. like matrixorigin#16375 Approved by: @ouyuanning, @m-schen, @badboynt1, @aunjgr

User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/3462
What this PR does / why we need it:
Currently, tableScan Stats updates slowly and cannot be trusted, so if build on table Scan Node, we cause many many problem
however, This may make some optimizations impossible. like #16375
PR Type
Bug fix
Description
tableScannode due to unreliabletableScanstatistics.sinkScannode by settingBuildIdxto 1.arg.Nto be 1.2 times thesinkScan.Stats.Outcntto improve reliability.Changes walkthrough 📝
operator.go
Always build on `sinkScan` node in `constructFuzzyFilter` functionpkg/sql/compile/operator.go
tableScannode.sinkScannode by settingBuildIdxto 1.arg.Nto be 1.2 timessinkScan.Stats.Outcnt.