iris-dataset-countries

Downloads24
Subscribe
1
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues
Robert Cemper22 January 2022
complete and easy to use dataset
  • my review refers to version 1.1.0
  • Docker container builds clean and starts without any problems.
  • The test description fulfills immediately and covers all promises.
  • The errors mentioned in the previous review seem to be fixed.
  • Results displayed by $system.SQL.Shell() are sometimes hard to read
  • So I used SMP / Explorer / SQL
  • Image
show more
Nigel Timothy Salm03 August 2021
Import of Countries doesn't work properly

Hi

I am not using docker so I imported the class and ran the Import() method as follows:

set sc=##class(dc.data.Country).Import(0,"D:\NiPaRobotica\iris-dataset-countries\data\CountryTable.csv",,1,.count)

Only 16 records were loaded. The method returned 16. I would have expected it to return a Status as there is a parameter RowCount, passed by reference, and it returned 0.

As the method does not return a Status O looked at %objlasterror and this is what it says:

w $system.Status.GetErrorText(sc)
ERROR #5794: Datatype validation failed on type '%Double', with value equal to "Republic"

ERROR #5802: Datatype validation failed on property 'dc.data.Country:gnp', with value equal to "Republic"
ERROR #7207: Datatype value 'Robert G. Mugabe' is not a valid number
ERROR #5802: Datatype validation failed on property 'dc.data.Country:gnpold', with value equal to "Robert G. Mugabe"
ERROR #7207: Datatype value '980,1669000,37.8,595' is not a valid number
ERROR #5802: Datatype validation failed on property 'dc.data.Country:independenceyear', with value equal to "980,1669000,37.8,595"
ERROR #7207: Datatype value 'Zimbabwe' is not a valid number
ERROR #5802: Datatype validation failed on property 'dc.data.Country:lifeexpectancy', with value equal to "Zimbabwe"

So, something is causing a number of records to fail when saved.

The csv file opens correctly in Excel and there are 240 countries. There is nothing that I can see in Excel that would indicate a problem.

Nigel Salm

show more
IPM installation
zpm "install dataset-countries"
Rating
3.75 (2)
Category
Technology Example
Works with
InterSystems IRISInterSystems IRIS for Health
Tags
Info
Version
1.1.0
Last updated
2022-01-07
Repository
Open
Documentation
Open
License
Link