Hello,
The "usual" behaviour (with other databases) when you use CHAR(n) is to store the n characters in the database even the trailing spaces at the end.
VARCHAR(n) will only store the significant characters, and store the length
It seems the Vertica behaviour is slightly different.
If I insert "Bernard " in a VARCHAR(20) column , when I select the column content , it will return exactly "Bernard " with the trailing spaces.
If I insert "Bernard " in a CHAR(20) column , when I select the column content , it will return "Bernard" without the trailing spaces.
Is it normal ?
This question comes from a customer moving from DB2,Netezza,SQL Server to Vertica , and a bit confused experiencing that behaviour.
Regards
Bernard