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

SDK and Server don't respect data_type, hints in template.yml #80

Open
aendra-rininsland opened this issue Mar 8, 2022 · 1 comment

Comments

@aendra-rininsland
Copy link

I have a dataset that has a column that is mostly numbers, but a few values like 2A. I need to ensure this is a string, but the SDK keeps typing it as a number (and losing any alphabetical designations in the process, thus breaking the IDs). I've tried configuring it in template.yml a few ways, up to:

  - key: code
    name: Code
    dataset: geography
    type: column
    column: france_departments::B
    data_type: string
    assignment:
      hints:
        string: true  # This default can be omitted.
        number: false # This stops number columns being picked.

No matter how explicit I am, the SDK seems to ignore the data_type setting.

@aendra-rininsland
Copy link
Author

Screenshot 2022-03-09 at 17 56 04

I tried publishing the template to see whether it was an issue restricted to the SDK and it appears not to — the data table loading on the server seems broken. The only way to ensure a column is typed as a number is to have no cells that can be coerced to a number.

@aendra-rininsland aendra-rininsland changed the title SDK doesn't respect data_type, hints in template.yml SDK and App don't respect data_type, hints in template.yml Mar 9, 2022
@aendra-rininsland aendra-rininsland changed the title SDK and App don't respect data_type, hints in template.yml SDK and Server don't respect data_type, hints in template.yml Mar 9, 2022
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