morrySnow commented on code in PR #29767: URL: https://github.com/apache/doris/pull/29767#discussion_r1447013186
########## fe/fe-core/src/main/java/org/apache/doris/catalog/constraint/Constraint.java: ########## @@ -17,15 +17,25 @@ package org.apache.doris.catalog.constraint; -public abstract class Constraint { +import org.apache.doris.common.io.Text; +import org.apache.doris.common.io.Writable; +import org.apache.doris.persist.gson.GsonUtils; + +import com.google.gson.annotations.SerializedName; + +import java.io.DataInput; +import java.io.DataOutput; +import java.io.IOException; + +public abstract class Constraint implements Writable { public enum ConstraintType { FOREIGN_KEY("FOREIGN KEY"), PRIMARY_KEY("PRIMARY KEY"), UNIQUE("UNIQUE"); - + @SerializedName(value = "type_name") Review Comment: nit: use short name to get smaller serailize data size -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org