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
I'm trying to read data from a table in a different schema than public but I get the error message that the table can't be found. I've tried to use the schema name both as the table name and in the query but to no success. I think it could be quite good to include the possibility to use different schemas, not only the default one. So I did research.. :)
I read that SQLAlchemy accepts the schema name and after some digging I found that i could supply it in the load_table function in relational_db_api.py. After I added it (see below) and also added it in all the calling places it seemed to work:
I set the default value to public (in the ReadFromDB function) but I'm not sure if that will only work for Postgres. And I didn't look at the write functions at all...
//Mattias
The text was updated successfully, but these errors were encountered:
In the end we ran another solution and not using Beam/Dataflow...
But as I wrote, when updated the load_table function and added the schema as "public" in the ReadFromDB function it worked. I didn't look at the write functions.
Hi,
I'm trying to read data from a table in a different schema than public but I get the error message that the table can't be found. I've tried to use the schema name both as the table name and in the query but to no success. I think it could be quite good to include the possibility to use different schemas, not only the default one. So I did research.. :)
I read that SQLAlchemy accepts the schema name and after some digging I found that i could supply it in the
load_table
function inrelational_db_api.py
. After I added it (see below) and also added it in all the calling places it seemed to work:I set the default value to
public
(in theReadFromDB
function) but I'm not sure if that will only work for Postgres. And I didn't look at the write functions at all...//Mattias
The text was updated successfully, but these errors were encountered: