Skip to content

Commit f53feab

Browse files
gforsythcpcloud
authored andcommitted
fix(mssql): fix strip, lstrip, rstrip
1 parent e29712c commit f53feab

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ibis/backends/sql/dialects.py

-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ class Generator(TSQL.Generator):
330330
sge.Variance: rename_func("var"),
331331
sge.VariancePop: rename_func("varp"),
332332
sge.Ceil: rename_func("ceiling"),
333-
sge.Trim: lambda self, e: f"TRIM({e.this.sql(self.dialect)})",
334333
sge.DateFromParts: rename_func("datefromparts"),
335334
}
336335

ibis/backends/tests/test_string.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ def string_temp_table(backend, con):
12651265
id="lstrip",
12661266
marks=[
12671267
pytest.mark.notimpl(
1268-
["clickhouse", "impala", "pyspark", "mssql"],
1268+
["clickhouse", "impala", "pyspark"],
12691269
raises=AssertionError,
12701270
reason="doesn't strip newline or tabs",
12711271
),
@@ -1282,7 +1282,7 @@ def string_temp_table(backend, con):
12821282
id="rstrip",
12831283
marks=[
12841284
pytest.mark.notimpl(
1285-
["clickhouse", "impala", "pyspark", "mssql"],
1285+
["clickhouse", "impala", "pyspark"],
12861286
raises=AssertionError,
12871287
reason="doesn't strip newline or tabs",
12881288
),
@@ -1299,7 +1299,7 @@ def string_temp_table(backend, con):
12991299
id="strip",
13001300
marks=[
13011301
pytest.mark.notimpl(
1302-
["impala", "mssql"],
1302+
["impala"],
13031303
raises=AssertionError,
13041304
reason="""
13051305
not stripping anything but space

0 commit comments

Comments
 (0)