Skip to content

Commit

Permalink
ensure motherduck token isn't included in primitive ID
Browse files Browse the repository at this point in the history
  • Loading branch information
boetro committed Dec 21, 2023
1 parent df84fce commit 5564b2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildflow/io/duckdb/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def __post_init__(self):
self.database = f"{self.database}?{self.motherduck_token}"

def primitive_id(self):
return f"{self.database}:{self.table}"
db = self.database
if "?" in self.database:
db = self.database.split("?")[0]

Check warning on line 31 in buildflow/io/duckdb/duckdb.py

View check run for this annotation

Codecov / codecov/patch

buildflow/io/duckdb/duckdb.py#L31

Added line #L31 was not covered by tests
return f"{db}:{self.table}"

@classmethod
def from_local_options(
Expand Down

0 comments on commit 5564b2e

Please sign in to comment.