I'm unable to connect to a PostgreSQL table (amplitude analytics) using this dplyr approach:
dplyr::tbl(amplitude_db, from = "app123.myEvent") %>% show_query()
Output:
RS-DBI driver: (could not Retrieve the result : ERROR: relation "app123.myEvent" does not exist
However, this approach works:
dplyr::tbl(myCon,sql(("SELECT * FROM app123.myEvent"))) %>% show_query()
Output:
<SQL>
SELECT * FROM app123.myEvent
>
Any ideas why the first approach is failing?