Skip to content

Commit

Permalink
Another couple fixes to read_database
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 18, 2024
1 parent d43075b commit b10b39a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions tests/scripts/sdss5db_too_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,6 @@ CREATE TABLE opsdb_apo.configuration (
epoch DOUBLE PRECISION,
calibration_version TEXT);

CREATE TABLE opsdb_apo.configuration (
configuration_id SERIAL PRIMARY KEY NOT NULL,
design_id INTEGER,
comment TEXT,
temperature TEXT,
epoch DOUBLE PRECISION,
calibration_version TEXT);

ALTER TABLE catalogdb.catalog ADD PRIMARY KEY (catalogid);
ALTER TABLE catalogdb.sdss_id_stacked ADD PRIMARY KEY (sdss_id);
ALTER TABLE catalogdb.catalog_to_gaia_dr3_source ADD PRIMARY KEY (catalogid, target_id, version_id);
Expand Down
4 changes: 2 additions & 2 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_update_too_targets(
too_mock_sample = too_mock[0:1000]

database_uri = database_uri_from_connection(catalogdb.database)
db_metadata = polars.read_database(
db_metadata = polars.read_database_uri(
"SELECT * FROM catalogdb.too_metadata ORDER BY too_id",
database_uri,
engine="adbc",
Expand All @@ -168,7 +168,7 @@ def test_update_too_targets(

assert "Updating ToO entries" in caplog.record_tuples[-2][2]

db_metadata = polars.read_database(
db_metadata = polars.read_database_uri(
"SELECT * FROM catalogdb.too_metadata ORDER BY too_id",
database_uri,
engine="adbc",
Expand Down

0 comments on commit b10b39a

Please sign in to comment.