Open timgraham opened 5 years ago
This is a limitation of Cockroach in that for pow(a, b)
where both a
and b
are integers, the result is expected to be integer as well. For pow(3, -1)
it is not, so we're returning a misleading integer out of range
error.
Do you see the behavior changing in the future or should the test be marked an expected failure?
I feel like we won't address this in the near future, so I would mark the failure as expected. cc @jordanlewis
Agreed.
Is it intentional?
Example SQL:
where big = 3 and small = -1.