File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,10 @@ class Snowflake(Dialect):
500
500
** Dialect .ANNOTATORS ,
501
501
** {
502
502
expr_type : lambda self , e : self ._annotate_by_args (e , "this" )
503
- for expr_type in (exp .Reverse ,)
503
+ for expr_type in (
504
+ exp .Reverse ,
505
+ exp .Trim ,
506
+ )
504
507
},
505
508
}
506
509
Original file line number Diff line number Diff line change @@ -1559,6 +1559,30 @@ BINARY;
1559
1559
REVERSE(NULL );
1560
1560
NULL ;
1561
1561
1562
+ # dialect: snowflake
1563
+ TRIM (' hello world' );
1564
+ VARCHAR ;
1565
+
1566
+ # dialect: snowflake
1567
+ TRIM (' hello world' , ' hello' );
1568
+ VARCHAR ;
1569
+
1570
+ # dialect: snowflake
1571
+ TRIM (tbl .bin_col );
1572
+ BINARY;
1573
+
1574
+ # dialect: snowflake
1575
+ TRIM (tbl .bin_col , tbl .bin_col );
1576
+ BINARY;
1577
+
1578
+ # dialect: snowflake
1579
+ TRIM (tbl .str_col );
1580
+ TEXT ;
1581
+
1582
+ # dialect: snowflake
1583
+ TRIM (tbl .str_col , tbl .str_col );
1584
+ TEXT ;
1585
+
1562
1586
-- ------------------------------------
1563
1587
-- T-SQL
1564
1588
-- ------------------------------------
You can’t perform that action at this time.
0 commit comments