@@ -767,6 +767,8 @@ export const printSQL = (
767
767
return printTypeDeclaration ( path , options , print , node ) ;
768
768
case "UnaryOperator" :
769
769
return printUnaryOperator ( path , options , print , node ) ;
770
+ case "UndropStatement" :
771
+ return printUndropStatement ( path , options , print , node ) ;
770
772
case "UnpivotConfig" :
771
773
return printUnpivotConfig ( path , options , print , node ) ;
772
774
case "UnpivotOperator" :
@@ -4913,6 +4915,39 @@ const printUnaryOperator: PrintFunc<bq2cst.UnaryOperator> = (
4913
4915
] ;
4914
4916
} ;
4915
4917
4918
+ const printUndropStatement : PrintFunc < bq2cst . UndropStatement > = (
4919
+ path ,
4920
+ options ,
4921
+ print ,
4922
+ node ,
4923
+ ) => {
4924
+ const p = new Printer ( path , options , print , node ) ;
4925
+ const docs : { [ Key in Docs < bq2cst . UndropStatement > ] : Doc } = {
4926
+ leading_comments : printLeadingComments ( path , options , print , node ) ,
4927
+ self : p . self ( "upper" ) ,
4928
+ trailing_comments : printTrailingComments ( path , options , print , node ) ,
4929
+ what : p . child ( "what" , undefined , "all" ) ,
4930
+ if_not_exists : p . child ( "if_not_exists" , ( x ) => group ( [ line , x ] ) ) ,
4931
+ ident : p . child ( "ident" , undefined , "all" ) ,
4932
+ semicolon : p . child ( "semicolon" ) ,
4933
+ } ;
4934
+ return [
4935
+ docs . leading_comments ,
4936
+ group ( [
4937
+ docs . self ,
4938
+ docs . trailing_comments ,
4939
+ " " ,
4940
+ docs . what ,
4941
+ docs . if_not_exists ,
4942
+ " " ,
4943
+ docs . ident ,
4944
+ softline ,
4945
+ docs . semicolon ,
4946
+ ] ) ,
4947
+ p . newLine ( ) ,
4948
+ ] ;
4949
+ } ;
4950
+
4916
4951
const printUnpivotConfig : PrintFunc < bq2cst . UnpivotConfig > = (
4917
4952
path ,
4918
4953
options ,
0 commit comments