Open together-wang opened 1 year ago
The root cause is that after applying the substring_index
the 2 join key columns then have different types.
So to let it can use IndexJoin again, we can add an explicit cast here:
The optimizer should be better to notify or warn why it cannot use IndexJoin
here. Join key types are mismatched
in this case.
Feature Request
Is your feature request related to a problem? Please describe:
Indexed column cannot use Index Join when it undergoes function processing.
Describe the feature you'd like:
Correlation column has function processing and supports index join.
Describe alternatives you've considered:
N/A
Teachability, Documentation, Adoption, Migration Strategy: