@@ -97,6 +97,7 @@ pub struct CreateTableBuilder {
97
97
pub cluster_by : Option < WrappedCollection < Vec < Ident > > > ,
98
98
pub clustered_by : Option < ClusteredBy > ,
99
99
pub options : Option < Vec < SqlOption > > ,
100
+ pub inherits : Option < Vec < ObjectName > > ,
100
101
pub strict : bool ,
101
102
pub copy_grants : bool ,
102
103
pub enable_schema_evolution : Option < bool > ,
@@ -151,6 +152,7 @@ impl CreateTableBuilder {
151
152
cluster_by : None ,
152
153
clustered_by : None ,
153
154
options : None ,
155
+ inherits : None ,
154
156
strict : false ,
155
157
copy_grants : false ,
156
158
enable_schema_evolution : None ,
@@ -331,6 +333,11 @@ impl CreateTableBuilder {
331
333
self
332
334
}
333
335
336
+ pub fn inherits ( mut self , inherits : Option < Vec < ObjectName > > ) -> Self {
337
+ self . inherits = inherits;
338
+ self
339
+ }
340
+
334
341
pub fn strict ( mut self , strict : bool ) -> Self {
335
342
self . strict = strict;
336
343
self
@@ -451,6 +458,7 @@ impl CreateTableBuilder {
451
458
cluster_by : self . cluster_by ,
452
459
clustered_by : self . clustered_by ,
453
460
options : self . options ,
461
+ inherits : self . inherits ,
454
462
strict : self . strict ,
455
463
copy_grants : self . copy_grants ,
456
464
enable_schema_evolution : self . enable_schema_evolution ,
@@ -512,6 +520,7 @@ impl TryFrom<Statement> for CreateTableBuilder {
512
520
cluster_by,
513
521
clustered_by,
514
522
options,
523
+ inherits,
515
524
strict,
516
525
copy_grants,
517
526
enable_schema_evolution,
@@ -560,6 +569,7 @@ impl TryFrom<Statement> for CreateTableBuilder {
560
569
cluster_by,
561
570
clustered_by,
562
571
options,
572
+ inherits,
563
573
strict,
564
574
iceberg,
565
575
copy_grants,
@@ -591,6 +601,7 @@ pub(crate) struct CreateTableConfiguration {
591
601
pub partition_by : Option < Box < Expr > > ,
592
602
pub cluster_by : Option < WrappedCollection < Vec < Ident > > > ,
593
603
pub options : Option < Vec < SqlOption > > ,
604
+ pub inherits : Option < Vec < ObjectName > > ,
594
605
}
595
606
596
607
#[ cfg( test) ]
0 commit comments