Skip to content

[Bug]: casted string is printed as scientific notation #8719

Closed

Description

@domingozhang

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

企业微信截图_16799090849768

current rule is cast float to string as scientific notation.
However, both mysql and pg is casting float to its original value
企业微信截图_a59498d0-bbcd-45aa-80c9-abc0d3c0cf6a

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s1
    on Mar 27, 2023
  2. added this to the V0.8.0 milestone on Mar 27, 2023
  3. assigned and unassigned on Mar 27, 2023
  4. m-schen commented on Mar 27, 2023

    @m-schen
    Contributor

    icettt will fix this bug.

  5. domingozhang commented on Mar 28, 2023

    @domingozhang
    ContributorAuthor

    same as mysql, when the range of float is in [-14,15], the value is printed as its own value. When out of this range, it is printed as scientific notation

  6. iceTTTT commented on Mar 29, 2023

    @iceTTTT
    Contributor

    Pr #8720 merged.

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

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions