Skip to content

Commit 40d2072

Browse files
committed
fix(pyspark): fix substring constant translation
1 parent 9c82179 commit 40d2072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibis/backends/pyspark/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ def compile_capitalize(t, op, **kwargs):
913913

914914

915915
@compiles(ops.Substring)
916-
def compile_substring(t, op, **kwargs):
917-
src_column = t.translate(op.arg, **kwargs)
916+
def compile_substring(t, op, raw: bool = False, **kwargs):
917+
src_column = t.translate(op.arg, raw=raw, **kwargs)
918918
start = t.translate(op.start, **kwargs, raw=True) + 1
919919
length = t.translate(op.length, **kwargs, raw=True)
920920

0 commit comments

Comments
 (0)