civisanalytics / civis-python

Civis API Python Client
BSD 3-Clause "New" or "Revised" License
34 stars 26 forks source link

[CIVIS-6409] Change civis_file_to_table to not use table ids to validate that a table exists #467

Closed mjziolko closed 1 year ago

mjziolko commented 1 year ago

The civis_file_to_table relies on a table having an id to validate its existence. Big query tables do not have ids and are not stored in RDS. Instead, use the new /databases/:id/schemas/:schema_name/tables/:table_name endpoint to validate whether or not a table exists. This endpoint works for redshift, postgres, and big query tables.