specs
specs copied to clipboard
rtrim field attribute
An rtrim attribute could be added to a Field, to indicate that trailing whitespace may be removed.
I think it might be Table Dialect property similar to https://datapackage.org/specifications/table-dialect/#skipinitialspace
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".