adriangb commented on code in PR #18222: URL: https://github.com/apache/datafusion/pull/18222#discussion_r2452551178
########## datafusion/sqllogictest/test_files/simplify_predicates.slt: ########## @@ -230,5 +230,17 @@ logical_plan 01)Filter: test_data.int_col > Int32(5) AND test_data.int_col > Int32(6) OR test_data.float_col < Float32(10) AND test_data.float_col < Float32(8) 02)--TableScan: test_data projection=[int_col, float_col, str_col, date_col, bool_col] + +query TT +EXPLAIN SELECT * FROM ( + SELECT * FROM test_data + WHERE int_col > 1 AND int_col < 10 +) WHERE int_col >= 1 AND int_col <= 10; +---- +logical_plan +01)Filter: test_data.int_col > Int32(1) AND test_data.int_col < Int32(10) Review Comment: Currently this produces `FilterExec: int_col@0 >= 1 AND int_col@0 <= 10` -- 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]
