Project

General

Profile

Actions

Bug #2712

closed

Problem with EML2DataSource with extra cols in csv file

Added by Dan Higgins over 17 years ago. Updated about 16 years ago.

Status:
Resolved
Priority:
Normal
Category:
actors
Target version:
Start date:
12/31/2006
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2712

Description

This problem can be seen by seaching for 'biomass'. First result is "1999 Sevilleta NPP Quadrat Sampling Data". Drag onto canvas and configure Data Output Format to return 'As Column Vector'. If you make a SDF workflow and try to display any of the columns to a Display actor the message

"Metadata sees data has 12columns but actually data has 13columns. Please make sure metadata is correct!"

Most of the rows in the table do have only 12 comma-separated columns. However, there are a few rows that have some additional comma-separated comments AFTER the 12th column value! This apparently causes a parsing failure.

I suggest that the parser should be modified to ignore any addition data beyond the last column. This would allow additional comments to the right of actual data columns. Note that R does this when it parses dataframes. Morpho also will display the data in this dataset without 'choking' on additional data off the right in some rows. (Dan Higgins)

Actions #1

Updated by Dan Higgins over 16 years ago

Need a parameter to turn 'ignoring extra data on and off' (rather than just having an error)

Actions #2

Updated by ben leinfelder about 16 years ago

Well, being lenient with this example dataset works...until we get to a record with 2.5 in a column described as an Integer. This is a different problem, and it's not clear if we should be lenient in this case, too.

Actions #3

Updated by ben leinfelder about 16 years ago

There is now a new parameter in the EML Datasource actor for "Allow lenient data parsing"
When it is checked (true), extra columns are ignored by the DelimitedReader if they are not described in the metadata. If left unchecked (false is the default), then an error will be raised if extra data is encountered.

ps: data type mismatches will continue to raise an error - 2.5 is just not an Integer.

Actions #4

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2712

Actions

Also available in: Atom PDF