Skip to content

SAWarning: Cannot correctly sort tables; there are unresolvable cycles between tables [Table A, TableB] #344

@machuwey

Description

@machuwey

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

Hello,
was wondering how could I solve this error, or specify which table should be created first.

SAWarning: Cannot correctly sort tables; there are unresolvable cycles between tables "A, B", which is usually caused by mutually dependent foreign key constraints.  Foreign key constraints involving these tables will not be considered; this warning may raise an error in a future release.
  for table in self.metadata.sorted_tables:

Use case

Be able to generate classes from mutually referenced tables.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions