Skip to content

Commit

Permalink
feat(catalog): support attoptions in pg_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Jun 17, 2024
1 parent b2bd5a9 commit 002da59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e_test/batch/catalog/pg_attribute.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@ tmp_idx id1 {2,1,3,5}
tmp_idx id2 {2,1,3,5}
tmp_idx id3 {2,1,3,5}

query T
select attoptions from pg_catalog.pg_attribute LIMIT 1;
----
NULL

statement ok
drop table tmp;
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use risingwave_frontend_macro::system_catalog;
ELSE ''::varchar
END AS attgenerated,
-1 AS atttypmod,
NULL::text[] AS attoptions,
0 AS attcollation
FROM rw_catalog.rw_columns c
WHERE c.is_hidden = false"
Expand All @@ -56,5 +57,6 @@ struct PgAttribute {
attidentity: String,
attgenerated: String,
atttypmod: i32,
attoptions: Vec<String>,
attcollation: i32,
}

0 comments on commit 002da59

Please sign in to comment.