求问tidb中执行where、having过滤子句的executor是哪个源码文件负责的?

在tidb/executor/目录中没有找到,辛苦告知,非常感谢。

where 和 having 都会转换成 selection 算子(都是过滤,唯一区别是 having 会放到 agg 算子后面)

selection 对应的 tidb 代码是: https://github.com/pingcap/tidb/blob/46c38e15eba43346fb3001280c5034385171ee20/executor/executor.go#L894

1 个赞

:+1::+1::+1::+1:
感谢robi

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。