@@ -97,6 +97,7 @@ pub struct CreateTableBuilder {
9797 pub cluster_by : Option < WrappedCollection < Vec < Ident > > > ,
9898 pub clustered_by : Option < ClusteredBy > ,
9999 pub options : Option < Vec < SqlOption > > ,
100+ pub inherits : Option < Vec < ObjectName > > ,
100101 pub strict : bool ,
101102 pub copy_grants : bool ,
102103 pub enable_schema_evolution : Option < bool > ,
@@ -151,6 +152,7 @@ impl CreateTableBuilder {
151152 cluster_by : None ,
152153 clustered_by : None ,
153154 options : None ,
155+ inherits : None ,
154156 strict : false ,
155157 copy_grants : false ,
156158 enable_schema_evolution : None ,
@@ -331,6 +333,11 @@ impl CreateTableBuilder {
331333 self
332334 }
333335
336+ pub fn inherits ( mut self , inherits : Option < Vec < ObjectName > > ) -> Self {
337+ self . inherits = inherits;
338+ self
339+ }
340+
334341 pub fn strict ( mut self , strict : bool ) -> Self {
335342 self . strict = strict;
336343 self
@@ -451,6 +458,7 @@ impl CreateTableBuilder {
451458 cluster_by : self . cluster_by ,
452459 clustered_by : self . clustered_by ,
453460 options : self . options ,
461+ inherits : self . inherits ,
454462 strict : self . strict ,
455463 copy_grants : self . copy_grants ,
456464 enable_schema_evolution : self . enable_schema_evolution ,
@@ -512,6 +520,7 @@ impl TryFrom<Statement> for CreateTableBuilder {
512520 cluster_by,
513521 clustered_by,
514522 options,
523+ inherits,
515524 strict,
516525 copy_grants,
517526 enable_schema_evolution,
@@ -560,6 +569,7 @@ impl TryFrom<Statement> for CreateTableBuilder {
560569 cluster_by,
561570 clustered_by,
562571 options,
572+ inherits,
563573 strict,
564574 iceberg,
565575 copy_grants,
@@ -591,6 +601,7 @@ pub(crate) struct CreateTableConfiguration {
591601 pub partition_by : Option < Box < Expr > > ,
592602 pub cluster_by : Option < WrappedCollection < Vec < Ident > > > ,
593603 pub options : Option < Vec < SqlOption > > ,
604+ pub inherits : Option < Vec < ObjectName > > ,
594605}
595606
596607#[ cfg( test) ]
0 commit comments