Skip to content

builtins: fix to_english(math.MinInt64)#44251

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:fix_to_english
Jan 23, 2020
Merged

builtins: fix to_english(math.MinInt64)#44251
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:fix_to_english

Conversation

@otan
Copy link
Copy Markdown
Contributor

@otan otan commented Jan 23, 2020

Resolves #44152.

Release note (bug fix): TO_ENGLISH(math.MinInt64) previously
errored. This is now fixed to return the correct result.

@otan otan requested review from a team and solongordon January 23, 2020 00:48
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

[nit]: I'd use MinInt64 in the release note as well. Also, it would not crash but return an internal error.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @solongordon)

Release note (bug fix): `TO_ENGLISH(math.MinInt64)` previously
errored. This is now fixed to return the correct result.
@otan
Copy link
Copy Markdown
Contributor Author

otan commented Jan 23, 2020

bors r=yuzefovich

craig bot pushed a commit that referenced this pull request Jan 23, 2020
44170: sql: unify InternalExecutor and SessionBoundInternalExecutor r=andreimatei a=andreimatei

The internal executor is a library that started bad and got worse. It
came in two flavors: InternalExecutor and SessionBoundInternalExecutor.
The interface was confusing, only matched by the implementation. And
besides tomes of code, neither of them could do the basic thing of
allowing a higher layer to bind most of the session data for future
internal queries, but let the user be overriden at the query site.

This patch does away with the SessionBoundInternalExecutor. It's
functionality is absorbed into the InternalExecutor. The ie now gets a
SetSessionData() method, used to bind session data. An extended query
interface is added, allowing some aspects of this session data to be
overriden on a per-query basis.

Release note: None

44251: builtins: fix to_english(math.MinInt64) r=yuzefovich a=otan

Resolves #44152.

Release note (bug fix): `TO_ENGLISH(math.MinInt64)` previously
errored. This is now fixed to return the correct result.

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
Co-authored-by: Oliver Tan <otan@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 23, 2020

Build succeeded

@craig craig bot merged commit 2a2718b into cockroachdb:master Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TO_ENGLISH(-9223372036854775808) results in an internal error

3 participants