!1109 修复普通表的数据迁移到分区报错,压缩标记有定义的时候,把它置为NOCOMPRESS
Merge pull request !1109 from maxiang/parse-master
This commit is contained in:
@ -1395,6 +1395,15 @@ static void transformTableLikeClause(
|
||||
def->storage = 0;
|
||||
/* copy compression mode from source table */
|
||||
def->cmprs_mode = attribute->attcmprmode;
|
||||
/*
|
||||
* When analyzing a column-oriented table with default_statistics_target < 0, we will create a row-oriented
|
||||
* temp table. In this case, ignore the compression flag.
|
||||
*/
|
||||
if (u_sess->analyze_cxt.is_under_analyze) {
|
||||
if (def->cmprs_mode != ATT_CMPR_UNDEFINED) {
|
||||
def->cmprs_mode = ATT_CMPR_NOCOMPRESS;
|
||||
}
|
||||
}
|
||||
def->raw_default = NULL;
|
||||
def->cooked_default = NULL;
|
||||
def->collClause = NULL;
|
||||
|
Reference in New Issue
Block a user