dlt-hub / dlt

data load tool (dlt) is an open source Python library that makes data loading easy 🛠️
https://dlthub.com/docs
Apache License 2.0
2.65k stars 176 forks source link

Feat/1711 create with not exists dlt tables #1740

Closed rudolfix closed 2 months ago

rudolfix commented 2 months ago

Description

fixes #1711

NOTE: this will prevent race conditions only if CREATE TABLE IF NOT EXISTS is atomic. ie. on postgres it is not if table contains partitions: https://stackoverflow.com/questions/77486178/how-to-prevent-create-table-if-not-exists-fail-with-duplicate-table

still the chances of a race are way smaller

also fixes two minor issues, see commit list below

netlify[bot] commented 2 months ago

Deploy Preview for dlt-hub-docs canceled.

Name Link
Latest commit 40b99434827d1c20a4421b1d170b420572ed5ce6
Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/66ccd030d471b20008078a3b