-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorfunc trans 🌍Translation of individual functions to SQLTranslation of individual functions to SQL
Description
bracket filter not work on dbplyr 2.0.0 on MS SQL like berow
tbl(con, "HOGE") %>% group_by(City_ID) %>% summarise(userVisit = n_distinct(visit_id[isUser == 1L]))
Error: nanodbc/nanodbc.cpp:1617: 00000: [FreeTDS][SQL Server]Statement(s) could not be prepared. [FreeTDS][SQL Server]An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'.
'SELECT TOP 11 "City_ID", COUNT(DISTINCT CASE WHEN ("isUser") THEN ("visit_id") END) AS "usrVisit"
FROM "HOGE"
GROUP BY "City_ID"'
It worked on dbplyr 1.4.4
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorfunc trans 🌍Translation of individual functions to SQLTranslation of individual functions to SQL