-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Infer Schema functionality breaks some examples #368
Comments
Definitely a bug inside the type parser—currently working on a fix. Thanks for the report! |
@matt-hooper is the crypto example you mention the one on bl.ocks.org? I have the issue fixed for your forecast data, but I want to see if it fixes the issue on the crypto example as well. Thanks! |
@sc1f, yes that is correct. I downloaded the example locally and switched the cdn reference for perspective to a local one, that is when I spotted the issue. |
@matt-hooper the issue looks like it's been resolved for both examples. If you pull the |
@sc1f - I have pulled the |
Thanks for the report, this is fixed in 0.2.12 |
It appears that the infer schema functionality changed between 0.2.9 and 0.2.11. This has broken some json based examples.
For example, the cryptocurrency example does not work using 0.2.10 (and above) of perspective.
The example reads from a json feed and auto-generates the table schema.
The generated schema is different between the two versions (even though the data from the feed is identical):
The renaming of the size field to remaining_size breaks the example:
I have also seen a similar issue with a different json based data source.
See attached example forecast_min.zip
forecast_min.zip
This example reads data from a json file.
When using 0.2.9 of perspective, the types of the data are correctly inferred:
When 0.2.11 is used, the types are all read as string values. None of the number types are inferred:
Is this new functionality intended?
Is it possible to force perspective to work in the old way and auto infer the number values (without manually passing a pre-defined schema)?
The text was updated successfully, but these errors were encountered: