in c3r-sdk-core/src/main/java/com/amazonaws/c3r/config/ColumnSchema.java [91:107]
public void validate() {
// A type is always required
if (type == null) {
throw new C3rIllegalArgumentException("Columns must be provided a type, but column " + sourceHeader + " has none.");
}
// Padding must be specified on encrypted columns
if (pad == null && type == ColumnType.SEALED) {
throw new C3rIllegalArgumentException("Padding must be provided for sealed columns, but column " + sourceHeader + " has none.");
}
// Padding may only be used on encrypted columns
if (pad != null && type != ColumnType.SEALED) {
throw new C3rIllegalArgumentException("Padding is only available for sealed columns, but pad type " + pad.getType().name()
+ " was sealed for column " + sourceHeader + " of type " + type + ".");
}
}