Connect to Redshift - getting db error #302
-
I'd like to have a fast connection to Redshift (using postgres) from my Jupyter Notebook. code
error_message
I think I get a connection, because if I put a table into the sql query that does not exist I get a error message like "table does not exist" I also tried the query in my client and it works, so I conclude that the query itself is not defective. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @micha-decker , can you try to add |
Beta Was this translation helpful? Give feedback.
Hi @micha-decker , can you try to add
protocol="cursor"
when you invokeread_sql
? By default our postgres connection usesbinary
protocol which issues the "COPY" command, and redshift does not support this. You can check more details here: https://sfu-db.github.io/connector-x/databases/postgres.html#protocols