Skip to content

Hive DDL Vocabulary Primary Key Constraint fails #697

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

Open
don-torok opened this issue Jun 7, 2024 · 1 comment
Open

Hive DDL Vocabulary Primary Key Constraint fails #697

don-torok opened this issue Jun 7, 2024 · 1 comment
Labels

Comments

@don-torok
Copy link

ALTER TABLE dev_omop.omop_custom_concepts.vocabulary ADD CONSTRAINT xpk_vocabulary PRIMARY KEY (vocabulary_id); fails because the ddl vocabulary_id not declared NOT NULL in DDL.

@HBD007
Copy link

HBD007 commented Mar 17, 2025

In All DB, DDL Vocabulary below Foreign Key Constraint fails.
Cohort table doesn't have cohort_definition_id

ALTER TABLE @cdmDatabaseSchema.COHORT_DEFINITION ADD CONSTRAINT fpk_COHORT_DEFINITION_cohort_definition_id FOREIGN KEY (cohort_definition_id) REFERENCES @cdmDatabaseSchema.COHORT (COHORT_DEFINITION_ID);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants