Skip to content

[BUG] CSV import rounds large integer IDs such as snowflake IDs #10708

Backlog

Description

@kowshikdev

Describe the bug
A CSV column of integers above 2^53 is inferred as a Number column, and the values are stored rounded.

To Reproduce

  1. Import a CSV with a column holding 1234567890123456789 into a new table.
  2. The column type is Number and the cell shows 1234567890123456800.

Expected behavior
The column is inferred as text and every digit is preserved, as is already done for leading-zero codes (#9754).

Additional context
inferColumnType in apps/sim/lib/table/import.ts.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions