Skip to content

[Bug]: The decimal type does not support the scientific notation format #2299

Closed

Description

@aressu1985

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id : 0.4.0
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

create table numtable(id int, dt decimal(10,5));
mysql> insert into numtable values(5,9.9999999994e4);
ERROR 1105 (HY000): unknown error:[42804]unexpected return type 'DECIMAL64' for binary expression '99999.999994'
mysql>

Expected Behavior

create table numtable(id int, dt decimal(10,5));
mysql> insert into numtable values(5,9.9999999994e4);
Query OK, 1 row affected, 1 warning (0.01 sec)

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    on Apr 27, 2022
  2. broccoliSpicy commented on Apr 27, 2022

    @broccoliSpicy
    Contributor

    neither does ClickHouse, do we need to support this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions