[Enhancement](auto-inc) Show create table support auto inc init value (#31021)

This commit is contained in:
abmdocrt
2024-02-18 10:03:03 +08:00
committed by yiguolei
parent ea4ad111a8
commit 5417bb4db0

View File

@ -803,7 +803,7 @@ public class Column implements Writable, GsonPostProcessable {
sb.append(" NOT NULL");
}
if (isAutoInc) {
sb.append(" AUTO_INCREMENT");
sb.append(" AUTO_INCREMENT(").append(autoIncInitValue).append(")");
}
if (defaultValue != null && getDataType() != PrimitiveType.HLL && getDataType() != PrimitiveType.BITMAP) {
if (defaultValueExprDef != null) {