diff --git a/e2e_test/ddl/show.slt b/e2e_test/ddl/show.slt index 9586731207fa7..89fd174f02b4e 100644 --- a/e2e_test/ddl/show.slt +++ b/e2e_test/ddl/show.slt @@ -33,10 +33,10 @@ table description t3 NULL volutpat vitae query TTT show columns from t3; ---- -v1 integer false -v2 integer false -v3 integer false -_row_id serial true +v1 integer false turpis vehicula +v2 integer false Lorem ipsum dolor sit amet +v3 integer false NULL +_row_id serial true consectetur adipiscing elit statement ok create index idx1 on t3 (v1,v2); diff --git a/e2e_test/extended_mode/basic.slt b/e2e_test/extended_mode/basic.slt index 054dae2f6a234..59195d093f1ce 100644 --- a/e2e_test/extended_mode/basic.slt +++ b/e2e_test/extended_mode/basic.slt @@ -53,10 +53,10 @@ table description t3 NULL NULL query TTT show columns from t3; ---- -v1 integer false -v2 integer false -v3 integer false -_row_id serial true +v1 integer false NULL +v2 integer false NULL +v3 integer false NULL +_row_id serial true NULL statement ok drop table t3; diff --git a/src/frontend/src/utils/infer_stmt_row_desc.rs b/src/frontend/src/utils/infer_stmt_row_desc.rs index fdc4b7c460fc2..dbe8968f0a293 100644 --- a/src/frontend/src/utils/infer_stmt_row_desc.rs +++ b/src/frontend/src/utils/infer_stmt_row_desc.rs @@ -35,6 +35,11 @@ pub fn infer_show_object(objects: &ShowObject) -> Vec { DataType::Varchar.to_oid(), DataType::Varchar.type_len(), ), + PgFieldDescriptor::new( + "Description".to_owned(), + DataType::Varchar.to_oid(), + DataType::Varchar.type_len(), + ), ], ShowObject::Connection { .. } => vec![ PgFieldDescriptor::new(