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

specify variable types when previewing files #171

Closed
gennaro-tedesco opened this issue Dec 5, 2019 · 4 comments
Closed

specify variable types when previewing files #171

gennaro-tedesco opened this issue Dec 5, 2019 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@gennaro-tedesco
Copy link

Would it be possible to force specify variable types through a configuration file or drop down menu next to the columns (or by hovering)? I have noticed that sometimes numerical formats are read as strings and viceversa, or maybe in some use cases one just needs to assert the types of such variables for easier sorting/filtering (based either on numerical conditions or string match).

Or is this already present and I have missed it?

@RandomFractals RandomFractals added the duplicate This issue or pull request already exists label Dec 5, 2019
@RandomFractals
Copy link
Owner

This will be added in the next data preview release, with an option for you to change in the data preview config per dataset view.

I am just waiting for this perspective dates handling enhancement to be released:

finos/perspective#829

I am going to close this request as duplicate of #156

I am aware of this shortcoming and looking to patch it soon!

@RandomFractals
Copy link
Owner

However, please keep in mind if your json data is a quoted string, it will be treated as a string, not a number.

See this json sample data file for how to adjust your number properties for now :)

https://github.com/RandomFractals/vscode-data-preview/blob/master/data/json/cars.json

@gennaro-tedesco
Copy link
Author

I see, thank you for looking into it, I hope the new release is coming soon!

@RandomFractals
Copy link
Owner

RandomFractals commented Dec 6, 2019

just sign up to watch releases since I try to compile pertinent notes and include screenshots for the feature updates when I release there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants