OHDSI/gaiaCore

loadGeometry() will not work if an empty table of same name exists

Open

#15 opened on Nov 10, 2023

 (2 comments) (0 reactions) (0 assignees)Java (3 forks)auto 404
good first issue

Repository metrics

Stars
 (4 stars)
PR merge metrics
 (PR metrics pending)

Description

Line 35 loadGeometry.R checks if table exists. If exists, doesnt load table.

This is almost always ideal, except in the rare case that a table starts to load, fails, and an empty table is left in database.

maybe loadGeometry() needs an overwrite flag?

I think a better and easier solution is to add a simple "if table exists AND table has more than zero rows" logic to loadgeometry.

Contributor guide