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

Self referential tables are not supported #12

Closed
jasonjho opened this issue Jul 18, 2019 · 1 comment
Closed

Self referential tables are not supported #12

jasonjho opened this issue Jul 18, 2019 · 1 comment

Comments

@jasonjho
Copy link

jasonjho commented Jul 18, 2019

Seeing

ValueError: Circular dependency, public.orders depends on itself!

in cases where tables (e.g. orders) have rows with parent references of the same type.

@acolombi
Copy link
Contributor

acolombi commented Jul 18, 2019

Hi Jason,

Yeah, if you have a circular dependency, you need to instruct Condenser to ignore the dependency. This is accomplished with the dependency_breaks part of the config. Judging by the error message I think you'll need to add the following dependency_breaks:

    "dependency_breaks": [
        {"fk_table": "public.orders", "target_table": "public.orders"},
    ],

When do this you're basically telling Condenser to ignore this foreign key for the purposes of subsetting.

I'll close this for now, as Condenser is working as intended. But happy to continue the discussion in this issue.

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

No branches or pull requests

2 participants