File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2424 ops .ExtractMicrosecond : "microsecond" ,
2525 ops .ExtractMillisecond : "millisecond" ,
2626 ops .ExtractMinute : "minute" ,
27- ops .ExtractMinute : "minute" ,
2827 ops .ExtractMonth : "month" ,
2928 ops .ExtractQuarter : "quarter" ,
3029 ops .ExtractSecond : "second" ,
3837 ops .StringContains : "contains" ,
3938 ops .StringSQLILike : "ilike" ,
4039 ops .StringSQLLike : "like" ,
40+ ops .Uppercase : "upper" ,
4141}
4242
4343
Original file line number Diff line number Diff line change @@ -86,3 +86,16 @@ def test_view():
8686def test_distinct ():
8787 expr = ibis .table ({"x" : "int" }, name = "t" ).distinct ()
8888 assert "t.distinct()" in decompile (expr )
89+
90+
91+ @pytest .mark .parametrize (
92+ ("method" , "override" ),
93+ [
94+ (ibis ._ .x .upper (), ".upper()" ),
95+ (ibis ._ .x .lower (), ".lower()" ),
96+ (ibis ._ .y .minute (), ".minute()" ),
97+ ],
98+ )
99+ def test_method_overrides (method , override ):
100+ expr = ibis .table ({"x" : "string" , "y" : "timestamp" }, name = "t" ).select (method )
101+ assert override in decompile (expr )
You can’t perform that action at this time.
0 commit comments