Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vocab table schema for exportConceptInformation #1146

Open
lrasmus opened this issue Nov 21, 2024 · 1 comment
Open

Vocab table schema for exportConceptInformation #1146

lrasmus opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lrasmus
Copy link

lrasmus commented Nov 21, 2024

When running executeDiagnostics, I specify cdmDatabaseSchema and vocabularyDatabaseSchema. I received an error that the concept table could not be found - but the error message was referencing the schema defined in cdmDatabaseSchema, not vocabularyDatabaseSchema.

I noticed that in exportConceptInformation, only the cdmDatabaseSchema is being passed in. And the function seems to purposefully reference the cdmDatabaseSchema when looking for the concept (and other vocabulary related) tables.

I had expected it to use vocabularyDatabaseSchema throughout for vocabulary-related tables. I wasn't sure if there was a design decision here on why cdmDatabaseSchema should instead be used. If it is reasonable to use vocabularyDatabaseSchema in this function, I would be happy to propose the change and submit a PR, but wanted to confirm first that we'd want this changed.

@azimov
Copy link
Collaborator

azimov commented Nov 26, 2024

@lrasmus This does sound like a bug. In general, most users implement the pattern that the CDM contains all the vocabulary tables directly rather than having a separate schema (I would consider this a best practice as vocabularies change frequently and you will almost certainly want you ETL to be tied to a vocabulary release). However, allowing a separate vocabulary schema should be supported so a PR allowing the use of a separate vocabulary schema would be accepted. As you say, adding the vocabulary schema variable here should resolve this issue.

@azimov azimov added the bug Something isn't working label Nov 26, 2024
@azimov azimov added this to the Release version 3.4.0 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants