-
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
roachtest/sqlsmith: a bug with propagating precise integer width into the filter #70738
Comments
The bug is present on 21.1.9 but not on 20.2.16, removing the release-blocker label. |
yet during the execution we divide by
My guess is that we're missing the propagation of the integer's width during planning. |
It looks like the width of the integer is propagated correctly, we just don't have a |
I see, indeed. We forgot to define some combinations in |
74882: execgen: add overloads for INTERVAL / INT4 and INTERVAL / INT2 r=mgartner a=mgartner Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes #70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values. Co-authored-by: Marcus Gartner <[email protected]>
Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes #70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values.
Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes #70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values.
Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes #70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values.
Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes cockroachdb#70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values.
Vectorized overloads for `INTERVAL / INT4` and `INTERVAL / INT2` expressions have been added. The omission of these overloads caused errors only in rare cases because usually these expressions are retyped to `INTERVAL / INT8` by the optimizer [here](https://github.com/cockroachdb/cockroach/blob/583efd3cd9c7198bac935bb81a7a598e5849a269/pkg/sql/opt/optbuilder/scalar.go#L218). Fixes #70738 Release note (bug fix): A bug has been fixed which caused errors in rare cases when trying to divide `INTERVAL` values by `INT4` or `INT2` values.
roachtest.sqlsmith/setup=seed-vec/setting=vec failed with artifacts on release-21.2 @ 24021ba163e4ac438b169d575cf1527a4aae394d:
Reproduce
See: roachtest README
This test on roachdash | Improve this report!
The text was updated successfully, but these errors were encountered: