mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
Fix MSSQL modulo (#5707)
This commit is contained in:
parent
8b7f9f1f8c
commit
aab7544778
@ -47,6 +47,12 @@ def _(element, compiler, **kw):
|
||||
return f"{value} % {base}"
|
||||
|
||||
|
||||
@compiles(ModuloFn, Dialects.MSSQL)
|
||||
def _(element, compiler, **kw):
|
||||
value, base = validate_and_compile(element, compiler, **kw)
|
||||
return f"{value} %% {base}"
|
||||
|
||||
|
||||
@compiles(ModuloFn, Dialects.BigQuery)
|
||||
@compiles(ModuloFn, Dialects.Redshift)
|
||||
@compiles(ModuloFn, Dialects.Snowflake)
|
||||
|
Loading…
x
Reference in New Issue
Block a user