Skip to content

Conversation

@erezrokah
Copy link
Member

@erezrokah erezrokah commented Feb 27, 2023

Summary

Fixes #8436.
It also adds missing types for double precision. The query we use returns it as real so the code failed when trying to read a table that has floats

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Feb 27, 2023
return schema.TypeBool
case "bigint", "integer":
return schema.TypeInt
case "double precision":
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our query that reads the current schema returns TypeFloat as PostgreSQL real, so this code always failed on a table that has floats columns. I added both float and real to the supported types

@kodiakhq kodiakhq bot merged commit 7bada3b into cloudquery:main Feb 27, 2023
kodiakhq bot pushed a commit that referenced this pull request Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Improve invalid type error during migration

3 participants