***Note from Migration:***
Original Title was: Provide a convinient way to dynamically set writer attribute width according to incoming data
Sometimes, we have the need to be economical with the output string attribute width, to avoid creating large datasets. Especially when the dataset already has a large number of attributes, and features.
It would be really helpful to be able to set the output string attribute width to accommodate the longest string in each field, but no longer.
Currently, the only way I can think of is the method suggested by david_r here, which involves exploding all attributes, calculating string length, and find the max length of each attribute. This process will be quite slow when dealing with a large dataset.
Any way to make this easier will be appreciated.



