[feature-wip](array-type) Use uppercase to describe columns with array type (#10193)

Use uppercase to describe columns with array type.
This commit is contained in:
Adonis Ling
2022-06-29 14:07:27 +08:00
committed by GitHub
parent 5f73668626
commit d1055eacb4

View File

@ -96,9 +96,9 @@ public class ArrayType extends Type {
@Override
public String toSql(int depth) {
if (!containsNull) {
return "ARRAY<NOT_NULL(" + itemType.toSql(depth + 1) + ")>";
return "array<not_null(" + itemType.toSql(depth + 1) + ")>";
} else {
return "ARRAY<" + itemType.toSql(depth + 1) + ">";
return "array<" + itemType.toSql(depth + 1) + ">";
}
}
@ -158,7 +158,7 @@ public class ArrayType extends Type {
@Override
public String toString() {
return toSql(0);
return toSql(0).toUpperCase();
}
@Override