-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: error in create ... interleave due to type aliases #24932
Comments
Aha, the issue here is that one table uses |
thanks for figuring the cause out. This seems closely related to #24686 . |
This has been fixed in #28690. Will be available in 2.1. |
was this included in 2.1? I'm running 2.1 stable and I'm still getting it: Main table was created using INT, the child table is trying to use INT and I'm getting the mismatch error. In order to fix it I had to a SHOW CREATE TABLE over the parent table to find out it really created it with INT8 data type, as soon as I used INT8 in the child table prefix key column then it worked. |
You are right, this is actually not entirely fixed yet. Thanks for noticing. |
@bobvawter you don't need to look at this issue specifically, but I'd like to take the opportunity to underline we need to entirely eradicate the current coltype called "INT" (and only keep the fixed-size types), because it would become ambiguous with the resolution rules we discussed last week. |
@bobvawter I think your recent PR has fixed this by doing the INT->INT8 substitution upfront. Can you verify and close this issue? |
This issue has indeed been fixed. |
From gitter: https://gitter.im/cockroachdb/cockroach?at=5ad7c30f5d7286b43a42e80a
The text was updated successfully, but these errors were encountered: