Numeric errors, server crash with COLUMN_JSON() on DECIMAL with precision > 40

Description

Lines 4 through 11 of the following input have numeric errors in the JSON output. Line 12 crashes the server.

Lines 6 through 13 of the following input have numeric errors in the JSON output. Line 14 crashes the server.

Note 1: JSON supports decimal number with arbitrary precision and scale.

Note 2: Apart from being numerically wrong, lines 6 through 13 of the output in the second test
are invalid JSON, which allows only numbers with magnitude less than one to begin with the digit 0.

Environment

Darwin yossy.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

Assignee

Oleksandr Byelkin

Reporter

TheF

Labels

None

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure