support json type

This commit is contained in:
xj0
2022-02-08 14:58:13 +08:00
committed by LINxiansheng
parent 4b25bac8d0
commit e5f59ea074
241 changed files with 46116 additions and 749 deletions

View File

@ -4005,6 +4005,17 @@ int ObResolverUtils::resolve_data_type(const ParseNode& type_node, const ObStrin
// do nothing
}
break;
case ObJsonTC:
if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_313) {
ret = OB_NOT_SUPPORTED;
LOG_USER_ERROR(OB_NOT_SUPPORTED, "create json column before cluster min version 3.1.3.");
} else {
data_type.set_length(length);
data_type.set_scale(default_accuracy.get_scale());
data_type.set_charset_type(CHARSET_UTF8MB4);
data_type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
}
break;
case ObBitTC:
if (precision < 0) {
ret = OB_ERR_UNEXPECTED;