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

Strips leading zeroes from text that looks like a number in a google sheets source #7085

Open
dobesv opened this issue Jul 30, 2024 · 0 comments

Comments

@dobesv
Copy link

dobesv commented Jul 30, 2024

I have a google sheet that has a column containing identifiers that happen to numeric most of the time, but some of the identifiers have leading zeroes or letters. When I load this into google sheets, even though the numbers have a backtick in google sheets to preserve leading zeroes, in redash it strips them.

A summary of the issue and the browser/OS environment in which it occurs.

Steps to Reproduce

  1. Setup Google Sheets integration
  2. Create a google sheet
  3. Enter values like:
ID Value
'0001 4
'0002 3
A009 9
BBBB 11

Note the single quote tells sheets to treat the number as a string

  1. Import the sheet into redash
  2. Bug: strings that look like numbers are truncated even with the leading quote; fields with letters initially show up as zero. You can change the visualization to display the column as text, but that will not restore the leading zeroes.

Screenshot of sheet I tested with:

image

Screenshot of results inside Redash:

image

Technical details:

Redash Version: 10.1.0 (2589bef)

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