alamb commented on code in PR #13422:
URL: https://github.com/apache/datafusion/pull/13422#discussion_r1844325950
##########
datafusion/sql/src/unparser/utils.rs:
##########
@@ -318,7 +318,9 @@ pub(crate) fn
try_transform_to_simple_table_scan_with_filters(
plan_stack.push(alias.input.as_ref());
}
LogicalPlan::Filter(filter) => {
- filters.push(filter.predicate.clone());
+ if !filters.contains(&filter.predicate) {
Review Comment:
IndexSet would be better so that the order of the filters is preserved
--
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]