Phoenix500526 commented on issue #27537: URL: https://github.com/apache/datafusion/issues/27537#issuecomment-7156667130
Hi, @abp002 and @adriangb ! One case I’d like to cover in step 2 is `a = b` and `b + 1 = c + d`. With `a` and `b + 1` as the representatives, two calls to `normalize_expr` take `c + d` → `b + 1` → `a + 1`. If we pick `c + d` for the second class, `b + 1` still becomes `a + 1` before the lookup, so we miss the equality. I’d try using the expression we get after normalizing a member’s children as an additional lookup key. In this example, `a + 1` would point to the same class as `b + 1`. Does that fit what you had in mind for step 2, or would you handle this case differently? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
