Thanks to Enam for the original report :-D
Apparently we are asking for the max integer value which is a little bit more that the legal limit.
Results in the following message:
- java.io.IOException: ERROR: length for type varchar cannot exceed 10485760
This issue is marked minor as you can work around it by actually mentioning the string length:
Long term I would like to see datastores provide their own FeatureTypeFactory so this kind of thing is not a problem ever again (and we can be sure that the GeoTools FeatureType is always a representation of what the data store can support).