@@ -28,7 +28,7 @@ use super::super::dml::CreateTable;
28
28
use crate :: ast:: {
29
29
ClusteredBy , ColumnDef , CommentDef , Expr , FileFormat , HiveDistributionStyle , HiveFormat , Ident ,
30
30
ObjectName , OnCommit , OneOrManyWithParens , Query , RowAccessPolicy , SqlOption , Statement ,
31
- StorageSerializationPolicy , TableConstraint , TableEngine , Tag , WrappedCollection ,
31
+ TableConstraint , TableEngine , Tag , WrappedCollection ,
32
32
} ;
33
33
use crate :: parser:: ParserError ;
34
34
@@ -71,7 +71,6 @@ pub struct CreateTableBuilder {
71
71
pub if_not_exists : bool ,
72
72
pub transient : bool ,
73
73
pub volatile : bool ,
74
- pub iceberg : bool ,
75
74
pub name : ObjectName ,
76
75
pub columns : Vec < ColumnDef > ,
77
76
pub constraints : Vec < TableConstraint > ,
@@ -108,11 +107,6 @@ pub struct CreateTableBuilder {
108
107
pub with_aggregation_policy : Option < ObjectName > ,
109
108
pub with_row_access_policy : Option < RowAccessPolicy > ,
110
109
pub with_tags : Option < Vec < Tag > > ,
111
- pub base_location : Option < String > ,
112
- pub external_volume : Option < String > ,
113
- pub catalog : Option < String > ,
114
- pub catalog_sync : Option < String > ,
115
- pub storage_serialization_policy : Option < StorageSerializationPolicy > ,
116
110
}
117
111
118
112
impl CreateTableBuilder {
@@ -125,7 +119,6 @@ impl CreateTableBuilder {
125
119
if_not_exists : false ,
126
120
transient : false ,
127
121
volatile : false ,
128
- iceberg : false ,
129
122
name,
130
123
columns : vec ! [ ] ,
131
124
constraints : vec ! [ ] ,
@@ -162,11 +155,6 @@ impl CreateTableBuilder {
162
155
with_aggregation_policy : None ,
163
156
with_row_access_policy : None ,
164
157
with_tags : None ,
165
- base_location : None ,
166
- external_volume : None ,
167
- catalog : None ,
168
- catalog_sync : None ,
169
- storage_serialization_policy : None ,
170
158
}
171
159
}
172
160
pub fn or_replace ( mut self , or_replace : bool ) -> Self {
@@ -204,11 +192,6 @@ impl CreateTableBuilder {
204
192
self
205
193
}
206
194
207
- pub fn iceberg ( mut self , iceberg : bool ) -> Self {
208
- self . iceberg = iceberg;
209
- self
210
- }
211
-
212
195
pub fn columns ( mut self , columns : Vec < ColumnDef > ) -> Self {
213
196
self . columns = columns;
214
197
self
@@ -388,34 +371,6 @@ impl CreateTableBuilder {
388
371
self
389
372
}
390
373
391
- pub fn base_location ( mut self , base_location : Option < String > ) -> Self {
392
- self . base_location = base_location;
393
- self
394
- }
395
-
396
- pub fn external_volume ( mut self , external_volume : Option < String > ) -> Self {
397
- self . external_volume = external_volume;
398
- self
399
- }
400
-
401
- pub fn catalog ( mut self , catalog : Option < String > ) -> Self {
402
- self . catalog = catalog;
403
- self
404
- }
405
-
406
- pub fn catalog_sync ( mut self , catalog_sync : Option < String > ) -> Self {
407
- self . catalog_sync = catalog_sync;
408
- self
409
- }
410
-
411
- pub fn storage_serialization_policy (
412
- mut self ,
413
- storage_serialization_policy : Option < StorageSerializationPolicy > ,
414
- ) -> Self {
415
- self . storage_serialization_policy = storage_serialization_policy;
416
- self
417
- }
418
-
419
374
pub fn build ( self ) -> Statement {
420
375
Statement :: CreateTable ( CreateTable {
421
376
or_replace : self . or_replace ,
@@ -425,7 +380,6 @@ impl CreateTableBuilder {
425
380
if_not_exists : self . if_not_exists ,
426
381
transient : self . transient ,
427
382
volatile : self . volatile ,
428
- iceberg : self . iceberg ,
429
383
name : self . name ,
430
384
columns : self . columns ,
431
385
constraints : self . constraints ,
@@ -462,11 +416,6 @@ impl CreateTableBuilder {
462
416
with_aggregation_policy : self . with_aggregation_policy ,
463
417
with_row_access_policy : self . with_row_access_policy ,
464
418
with_tags : self . with_tags ,
465
- base_location : self . base_location ,
466
- external_volume : self . external_volume ,
467
- catalog : self . catalog ,
468
- catalog_sync : self . catalog_sync ,
469
- storage_serialization_policy : self . storage_serialization_policy ,
470
419
} )
471
420
}
472
421
}
@@ -486,7 +435,6 @@ impl TryFrom<Statement> for CreateTableBuilder {
486
435
if_not_exists,
487
436
transient,
488
437
volatile,
489
- iceberg,
490
438
name,
491
439
columns,
492
440
constraints,
@@ -523,11 +471,6 @@ impl TryFrom<Statement> for CreateTableBuilder {
523
471
with_aggregation_policy,
524
472
with_row_access_policy,
525
473
with_tags,
526
- base_location,
527
- external_volume,
528
- catalog,
529
- catalog_sync,
530
- storage_serialization_policy,
531
474
} ) => Ok ( Self {
532
475
or_replace,
533
476
temporary,
@@ -562,7 +505,6 @@ impl TryFrom<Statement> for CreateTableBuilder {
562
505
clustered_by,
563
506
options,
564
507
strict,
565
- iceberg,
566
508
copy_grants,
567
509
enable_schema_evolution,
568
510
change_tracking,
@@ -573,11 +515,6 @@ impl TryFrom<Statement> for CreateTableBuilder {
573
515
with_row_access_policy,
574
516
with_tags,
575
517
volatile,
576
- base_location,
577
- external_volume,
578
- catalog,
579
- catalog_sync,
580
- storage_serialization_policy,
581
518
} ) ,
582
519
_ => Err ( ParserError :: ParserError ( format ! (
583
520
"Expected create table statement, but received: {stmt}"
0 commit comments