@@ -291,7 +291,7 @@ impl PartialOrd for CreateExternalTable {
291291}
292292
293293impl CreateExternalTable {
294- pub fn new ( fields : CreateExternalTableFields ) -> Result < Self > {
294+ pub fn try_new ( fields : CreateExternalTableFields ) -> Result < Self > {
295295 let CreateExternalTableFields {
296296 name,
297297 schema,
@@ -497,7 +497,7 @@ impl CreateExternalTableBuilder {
497497 }
498498
499499 pub fn build ( self ) -> Result < CreateExternalTable > {
500- CreateExternalTable :: new ( CreateExternalTableFields {
500+ CreateExternalTable :: try_new ( CreateExternalTableFields {
501501 name : self . name . expect ( "name is required" ) ,
502502 schema : self . schema . expect ( "schema is required" ) ,
503503 location : self . location . expect ( "location is required" ) ,
@@ -536,7 +536,7 @@ pub struct CreateMemoryTable {
536536}
537537
538538impl CreateMemoryTable {
539- pub fn new ( fields : CreateMemoryTableFields ) -> Result < Self > {
539+ pub fn try_new ( fields : CreateMemoryTableFields ) -> Result < Self > {
540540 let CreateMemoryTableFields {
541541 name,
542542 constraints,
@@ -664,7 +664,7 @@ impl CreateMemoryTableBuilder {
664664 }
665665
666666 pub fn build ( self ) -> Result < CreateMemoryTable > {
667- CreateMemoryTable :: new ( CreateMemoryTableFields {
667+ CreateMemoryTable :: try_new ( CreateMemoryTableFields {
668668 name : self . name . expect ( "name is required" ) ,
669669 constraints : self . constraints ,
670670 input : self . input . expect ( "input is required" ) ,
@@ -693,7 +693,7 @@ pub struct CreateView {
693693}
694694
695695impl CreateView {
696- pub fn new ( fields : CreateViewFields ) -> Result < Self > {
696+ pub fn try_new ( fields : CreateViewFields ) -> Result < Self > {
697697 let CreateViewFields {
698698 name,
699699 input,
@@ -795,7 +795,7 @@ impl CreateViewBuilder {
795795 }
796796
797797 pub fn build ( self ) -> Result < CreateView > {
798- CreateView :: new ( CreateViewFields {
798+ CreateView :: try_new ( CreateViewFields {
799799 name : self . name . expect ( "name is required" ) ,
800800 input : self . input . expect ( "input is required" ) ,
801801 or_replace : self . or_replace ,
0 commit comments