databend
databend copied to clipboard
Feature: Use ScalarVisitor to refactor codes in `optimizer`
Summary
Description for this feature.
There are many places that use match scalar_expr
to replace/find scalar_exprs
, better use ScalarVisitor
to improve these codes.
-
fn replace_predicate
-
fn replace_predicate_column
-
fn collect_columns_impl
- ...
Got. Now I see privilege part code. Tomorrow I will do this issue.
https://github.com/datafuselabs/databend/pull/15215