File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,11 @@ def _regex_extract(t, expr):
167
167
ops .RegexExtract : _regex_extract ,
168
168
ops .RegexReplace : fixed_arity (sa .func .regexp_replace , 3 ),
169
169
ops .StringContains : fixed_arity (sa .func .contains , 2 ),
170
+ ops .CMSMedian : reduction (
171
+ # without inline text, duckdb fails with
172
+ # RuntimeError: INTERNAL Error: Invalid PhysicalType for GetTypeIdSize # noqa: E501
173
+ lambda arg : sa .func .approx_quantile (arg , sa .text (str (0.5 )))
174
+ ),
170
175
ops .HLLCardinality : reduction (sa .func .approx_count_distinct ),
171
176
}
172
177
)
Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ def test_verify(ddl_backend, ddl_con):
337
337
assert ddl_backend .api .verify (expr )
338
338
339
339
340
+ @pytest .mark .never (["duckdb" ], reason = "duckdb supports approximate median" )
340
341
def test_not_verify (alchemy_con , alchemy_backend ):
341
342
# There is no expression that can't be compiled to any backend
342
343
# Testing `not verify()` only for an expression not supported in postgres
You can’t perform that action at this time.
0 commit comments