Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric column data type (int/float) is determined by the first row value and rounded accordingly #321

Open
nisan-tagar opened this issue Dec 27, 2022 · 0 comments

Comments

@nisan-tagar
Copy link

When opening JSON or XLSX files with data preview, the tool determines the data type of the numeric column based on the first row entry and does not look at all the data set for the correct data type required.
Example, for this data set:

[
  {
    "Amt": 2500.00,
  },
  {
    "Amt": 50.25,
  }
]

Data preview will assume that the "Amt" column is of type int and truncate all the data set shown in the grid table.
However if the rows are reversed then the data type is set correctly to float and the grid table values are correct as well:

[
  {
    "Amt": 50.25,
  },
  {
    "Amt": 2500.00,
  }
]
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

No branches or pull requests

1 participant