Skip to content

Commit eb94a64

Browse files
committed
fix(risingwave): use LN for natural log without explicit base
1 parent d31d66b commit eb94a64

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ibis/backends/sql/compilers/risingwave.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def to_sqlglot(
8585
def visit_DateNow(self, op):
8686
return self.cast(sge.CurrentTimestamp(), dt.date)
8787

88+
def visit_Log(self, op, *, arg, base):
89+
if op.base is None:
90+
return self.f.ln(arg)
91+
return super().visit_Log(op, arg=arg, base=base)
92+
8893
def visit_Cast(self, op, *, arg, to):
8994
if to.is_json():
9095
return self.f.to_jsonb(arg)

0 commit comments

Comments
 (0)