The following follow ups to https://github.com/elastic/elasticsearch/pull/137002 need to be addressed: - [ ] Do a single walk through the plan on the pushdown rule, similar to how `ResolveUnionTypes` work - [ ] Deduplicate fields in multiple commands when replacing expressions by pushed down fields - [ ] Implement `canonicalize` for vector similarity functions - [ ] Don't use vector hashes for replacing attributes (see [comment](https://github.com/elastic/elasticsearch/pull/137002#discussion_r2476874145))
The following follow ups to #137002 need to be addressed:
ResolveUnionTypesworkcanonicalizefor vector similarity functions