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

Bug: using map[text => text] as type in materialize_table causes the table to be re-created each time #570

Open
bobbyiliev opened this issue May 28, 2024 · 1 comment

Comments

@bobbyiliev
Copy link
Contributor

When using map[text => text] as type, the stored type in the state mismatches the actual type, causing the provider to try and re-create the table each time:

resource "materialize_table" "simple_table" {
  name          = "simple_table"
  schema_name   = "public"
  database_name = "materialize"
  comment       = "table comment"

  column {
    name = "column_1"
    type = "map[text => text]"
  }
}
@benesch
Copy link
Member

benesch commented May 28, 2024

Looks related to some stuff I was poking at in MaterializeInc/materialize#27318.

@bobbyiliev: Materialize might just not report the information that you need in mz_columns to properly implement reads of the type property today. Will need to think about this one. I bet list types are broken in the same way.

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