diff --git a/third_party/ibis/ibis_addon/operations.py b/third_party/ibis/ibis_addon/operations.py index 140f80b42..6757f5e2a 100644 --- a/third_party/ibis/ibis_addon/operations.py +++ b/third_party/ibis/ibis_addon/operations.py @@ -240,7 +240,8 @@ def sa_format_hashbytes_mssql(translator, expr): def sa_format_hashbytes_oracle(translator, expr): arg, how = expr.op().args compiled_arg = translator.translate(arg) - hash_func = sa.func.standard_hash(compiled_arg, sa.sql.literal_column("'SHA256'")) + convert = sa.func.convert(compiled_arg, sa.sql.literal_column("'UTF8'")) + hash_func = sa.func.standard_hash(convert, sa.sql.literal_column("'SHA256'")) return sa.func.lower(hash_func) def sa_format_hashbytes_mysql(translator, expr):