This commit is contained in:
Xiao__Ma 2021-07-21 15:38:31 +08:00
parent ee41b69791
commit be3daf9735
1 changed files with 9 additions and 0 deletions

View File

@ -1406,6 +1406,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;