-
Notifications
You must be signed in to change notification settings - Fork 263
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
Panic when inspecting pg #557
Comments
Hi @bodinsamuel 👋 |
Hey @bodinsamuel, can you please check if you get this without the |
seems to work without the I tried to find a minimum schema to reproduce but seems "random" even though it's probably not ^^ |
I think I have reduced it down, but not sure why.
# main.hcl
table "states" {
schema = schema.public
column "config_id" {
null = false
type = uuid
}
column "end_at" {
null = true
type = timestamp_without_time_zone(6)
}
foreign_key "states_id_fkey" {
columns = [table.states.column.config_id]
ref_columns = [table.configs.column.id]
on_update = "NO ACTION"
on_delete = "CASCADE"
}
index "states_config_id_end_at" {
on {
column = table.states.column.config_id
}
on {
desc = true
column = table.states.column.end_at
}
unique = true
}
}
table "configs" {
schema = schema.public
column "id" {
null = false
type = uuid
}
column "name" {
null = true
type = character_varying(255)
}
primary_key {
columns = [table.configs.column.id]
}
}
schema "public" {
} |
Thanks for reporting this @bodinsamuel ! Your example |
Hi @bodinsamuel ,
atlas CLI version
|
it works 🙏🏻 |
Hi team,
Saw the post on HN and wanted to try the tool.
After reading the doc (could be cool to have a simple
brew install
), got to this step:atlas schema inspect -d "postgres://postgres:<pwd>@localhost:26432/postgres?sslmode=disable" -w
But the process crashes with the error
panic: inconsistent map element types
Click to see stacktrace
Version
Best Regards,
The text was updated successfully, but these errors were encountered: