Skip to content

Whitelisting a table while blacklisting one of those tables columns #1453

@jamisonhyatt

Description

@jamisonhyatt

Repro

Create the following tables:

      CREATE TABLE IF NOT EXISTS t1 (
        c1 INT PRIMARY KEY AUTO_INCREMENT,
        c2 VARCHAR(255),
        c3 VARCHAR(255)
      );
      CREATE TABLE IF NOT EXISTS t2 (
        c1 INT PRIMARY KEY AUTO_INCREMENT,
        c2 VARCHAR(255),
        c3 VARCHAR(255)
      );"

Then generate model files with a whitelist/blacklist config like:

  whitelist = ["t1"]
  blacklist = ["t1.c3"]

The following configuration will incorrectly create model files with the column t1.c3

Whereas if you remove the whitelist directive and create models for all tables (t1 and t2) and retain the blacklist - the t1.c3 column will be correctly omitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions