diff --git a/src/gausskernel/optimizer/plan/createplan.cpp b/src/gausskernel/optimizer/plan/createplan.cpp index 71d36c409791785893082f949af9af73a4e242fe..23101aee38ee2307e9542f95aa76166ff683b087 100755 --- a/src/gausskernel/optimizer/plan/createplan.cpp +++ b/src/gausskernel/optimizer/plan/createplan.cpp @@ -1258,7 +1258,7 @@ static Plan* create_append_plan(PlannerInfo* root, AppendPath* best_path) ListCell* subpaths = NULL; if (tlist == NIL) { - Const* c = make_const(NULL, makeString("Dummy"), 0); + Const* c = makeConst(INT4OID, -1, InvalidOid, -2, (Datum)0, true, false); tlist = lappend(tlist, makeTargetEntry((Expr*)c, 1, NULL, true)); } diff --git a/src/test/regress/output/vec_result.source b/src/test/regress/output/vec_result.source index da935fe48a8637c79c49a89c13d6dc6fcf29bb76..5b714cea21b5779a9192829f1c49d5720288a106 100644 --- a/src/test/regress/output/vec_result.source +++ b/src/test/regress/output/vec_result.source @@ -446,9 +446,9 @@ GROUP BY ROLLUP(Column_026); -> CStore Scan on vector_result_engine.job_classification table_030 Output: 'Dummy' -> Vector Adapter - Output: ('Dummy') + Output: (NULL::integer) -> Result - Output: 'Dummy' + Output: NULL::integer One-Time Filter: false -> Vector Materialize Output: table_037.location_type_desc @@ -487,9 +487,9 @@ GROUP BY ROLLUP(Column_026); -> CStore Scan on vector_result_engine.job_classification table_030 Output: 'Dummy' -> Vector Adapter - Output: ('Dummy') + Output: (NULL::integer) -> Result - Output: 'Dummy' + Output: NULL::integer One-Time Filter: false -> Vector Materialize Output: table_037.location_type_desc