[Feature](multi-catalog) Truncate char or varchar columns if size is smaller than file columns or not found in the file column schema. (#22318)
Truncate char or varchar columns if size is smaller than file columns or not found in the file column schema by session var `truncate_char_or_varchar_columns`.
This commit is contained in:
@ -517,7 +517,9 @@ public class ScalarType extends Type {
|
||||
}
|
||||
|
||||
public static ScalarType createVarcharType() {
|
||||
return DEFAULT_VARCHAR;
|
||||
// Because ScalarType is not an immutable class, it will call setLength() sometimes.
|
||||
// So currently don't use DEFAULT_VARCHAR, will improve it in the future.
|
||||
return new ScalarType(PrimitiveType.VARCHAR);
|
||||
}
|
||||
|
||||
public static ScalarType createHllType() {
|
||||
|
||||
Reference in New Issue
Block a user