[MCOL-2043] Columnstore decimal number string conversion problem Created: 2018-12-20  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: MariaDB Server
Affects Version/s: 1.2.2
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Matthias Dr. Döring Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: beginner-friendly


 Description   

Hello,

the string conversion of the field v1 in the following example provides unexpected number formatting results. All values in the range between ]-0.1 ... +0.1[ are formatted without a zero before the decimal point. You get for example

.0200
-.0200

That could be reproduced just for columnstore tables. With innodb tables the 0 digits appear as expected. The number format causes problems when used in JSON objects where that number syntax is not allowed. The expected behaviour is to get the same format for all decimal numbers between ]-1.000 ... + 1.000[ ideally of cource with the missing zero before the decimal point (as I get it with innoDB storage engine).

Best regards
Matthias

drop table if exists numbconv;
create table if not exists numbconv (v1 decimal(14,4)) ENGINE=Columnstore;
insert into numbconv values(0.0200);

SELECT
CONCAT(v1) AS erval
FROM
numbconv



 Comments   
Comment by Roman [ 2019-03-15 ]

Many thanks for the report - wi will look into this.

Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

Generated at Thu Feb 08 02:33:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.