mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-09 17:12:02 +00:00
* Fix no bind for params * Update ingestion/src/metadata/orm_profiler/orm/functions/median.py Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com> Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
parent
6cfd39c025
commit
22eca3a6f6
@ -30,8 +30,8 @@ class MedianFn(FunctionElement):
|
||||
|
||||
@compiles(MedianFn)
|
||||
def _(elements, compiler, **kwargs):
|
||||
col, _ = [compiler.process(element, **kwargs) for element in elements.clauses]
|
||||
return "percentile_cont(0.5) WITHIN GROUP (ORDER BY %s ASC)" % col
|
||||
col = elements.clauses.clauses[0].name
|
||||
return "percentile_cont(0.5) WITHIN GROUP (ORDER BY %s ASC)" % col
|
||||
|
||||
|
||||
@compiles(MedianFn, Dialects.BigQuery)
|
||||
|
Loading…
x
Reference in New Issue
Block a user