Skip to content

Commit

Permalink
fix(pyspark): fix substring constant translation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 19, 2023
1 parent 9c82179 commit 40d2072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/pyspark/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,8 @@ def compile_capitalize(t, op, **kwargs):


@compiles(ops.Substring)
def compile_substring(t, op, **kwargs):
src_column = t.translate(op.arg, **kwargs)
def compile_substring(t, op, raw: bool = False, **kwargs):
src_column = t.translate(op.arg, raw=raw, **kwargs)
start = t.translate(op.start, **kwargs, raw=True) + 1
length = t.translate(op.length, **kwargs, raw=True)

Expand Down

0 comments on commit 40d2072

Please sign in to comment.