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
Using filter on a column created by mutate (in this case rnk) fails with the error
> dp %>% mutate(rnk = min_rank(desc(salary))) %>% filter(rnk == 1)
Error in postgresqlExecStatement(conn, statement, ...) :
RS-DBI driver: (could not Retrieve the result : ERROR: column "rnk" does not exist
LINE 3: WHERE "rnk" = 1.0) AS master
^
)
Due to the setup of R and Greenplum I have to use, I can't provide a replicable example. I'm not sure if this is a psql issue or specific to Greenplum. I don't get errors using local dataframes or sqlite.
The text was updated successfully, but these errors were encountered:
SELECT "first_name", "last_name", "emp_id", "hire_date", "salary", "dept",
"exempt", "interests", rank() OVER (ORDER BY "salary" DESC) AS "rnk"
FROM "emp"
WHERE "rnk" = 1.0
Using
filter
on a column created bymutate
(in this casernk
) fails with the errorHowever, selecting the column
rnk
works:Due to the setup of R and Greenplum I have to use, I can't provide a replicable example. I'm not sure if this is a psql issue or specific to Greenplum. I don't get errors using local dataframes or sqlite.
The text was updated successfully, but these errors were encountered: