You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mgirlich The problem is that is_lazy_sql_part() is returning false because the second query element (x %in% to_filter) is not an expression because by that point the value of to_filter has been inlined into the call. If I replace is_expression() with is_call() this query works and none of the test fails, so maybe you just misunderstood what the (confusingly named) is_expression() does?
hadley
changed the title
Filtering with external vector and max gives lazy_select_query error since version 2.2.0
Filtering with external vector and max gives lazy_select_query error
Dec 5, 2022
I already had a PR prepared for this (though not on Github) and considered using is_symbolic() instead of the incorrect is_symbol() | is_expression(). But maybe is_symbol() | is_call() is easier to understand.
Filtering a dbplyr table with col %in% ext_vector & col == max(col) causes an error. This works in version 2.1.1, but not 2.2.0
Either of these statements by themselves, or split into seperate filter functions run correctly.
Created on 2022-11-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: