setHaMvccColumnNullability
Syntax
setHaMvccColumnNullability(table, colName, allowNull)
Details
Sets whether specified columns of an HA MVCC table allow null values.
Notes: This function must be executed on the Leader node of the Raft group that the table belongs to.
Parameters
table is an HA MVCC table indicating the table to modify.
colName is a STRING scalar or vector indicating the column name(s) to set (single or multiple columns).
allowNull is a BOOLEAN scalar or vector indicating whether to allow null values. If it is a vector, it must have the same length as colName.
Examples
schemaTb = table(1:0, `id`v, [INT, DOUBLE])
t = haMvccTable(1:0, schemaTb, "haT", 2)
setHaMvccColumnNullability(t, "v", false)
setHaMvccColumnNullability(t, ["id","v"], [false,false])
Related function: haMvccTable
