Closed isavita closed 2 weeks ago
I think this is expected behaviour because the AirByte process drops and recreates the table. What I do is I run a shell script that grants the required access to my account. IMO, it would be good if the Connection settings would be extended to allow the end user to enter raw SQL commands that would be executed at the end of the process. This way, we could enter the Grant statement.
Closing as the destination drops and recreates tables as needed to have 0-data-downtime
Environment
public
.Current Behavior
I am using full refresh with overwrite to copy a table from BigQuery to Postgresql Every time I do sync I am getting no permission to the table this is how my table with permissions looks after the full refres.
Once I manually give permission to my_user to read all tables
I can see the table, but ONCE I do sync again the story repeats.
Expected Behaviour
I would expect after full refresh all users that had read access to be able to see the table still. Instead I am getting access errors and need manually to grand them access each time.
Logs
I can provide logs if needed
Steps to Reproduce
Create a table in BigQuery and use it as source
Create destination with Postgresql and use specific user for airbyte that has all writes read, write etc.
Create connection with following setup Full refresh | Overwrite from BigQuery to Postgresql.
Run sync.
Create another user in postgres and give all read access to the table with.
Do sync again from the Airbyte UI.
Try to read from the original table with the user2 or/and check the permission with following sql.
Are you willing to submit a PR?
I am not sure how can I fix destination behaviour if someone point me to the code for the postgresql destination, I might give a try.