specs icon indicating copy to clipboard operation
specs copied to clipboard

rtrim field attribute

Open fomcl opened this issue 1 year ago • 2 comments
trafficstars

An rtrim attribute could be added to a Field, to indicate that trailing whitespace may be removed.

fomcl avatar Mar 07 '24 15:03 fomcl

I think it might be Table Dialect property similar to https://datapackage.org/specifications/table-dialect/#skipinitialspace

roll avatar Apr 12 '24 08:04 roll

Use case Gremlin Load Data Format with this rule:

Surrounding spaces between delimiters are ignored. If a row is present as value1, value2, they are stored as "value1" and "value2".

The new configuration attribute could be named skipFinalSpace to also trim value1 ,value2 to "value1" and "value2".

By the way the definition of skipInitialSpace should be extended to also cover leading witespace before the first field and it should better define "whitespace".

nichtich avatar Apr 30 '24 15:04 nichtich