mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
fix: switch dbx to approx_percentile (#20554)
This commit is contained in:
parent
adfa078f6a
commit
fbf6377e3f
@ -51,6 +51,14 @@ def _(elements, compiler, **kwargs):
|
||||
return "percentile_cont(%s , %s) OVER()" % (col, percentile)
|
||||
|
||||
|
||||
@compiles(MedianFn, Dialects.Databricks)
|
||||
def _(elements, compiler, **kwargs):
|
||||
col, _, percentile = [
|
||||
compiler.process(element, **kwargs) for element in elements.clauses
|
||||
]
|
||||
return "percentile_approx(%s , %s)" % (col, percentile)
|
||||
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
@compiles(MedianFn, Dialects.Cockroach)
|
||||
def _(elements, compiler, **kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user