Skip to content

Commit

Permalink
PERCENTILE functions require OVER() (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanclary authored Dec 26, 2023
1 parent dee1399 commit 122db2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connector/tableau/looker-jdbc/dialect.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,12 @@
<argument type='date' />
</function>
<function group='aggregate' name='MEDIAN' return-type='real'>
<formula>PERCENTILE_CONT((%1), 0.5)</formula>
<formula>PERCENTILE_CONT((%1), 0.5) OVER()</formula>
<unagg-formula>%1</unagg-formula>
<argument type='real' />
</function>
<function group='aggregate' name='MEDIAN' return-type='int'>
<formula>PERCENTILE_DISC((%1), 0.5)</formula>
<formula>PERCENTILE_DISC((%1), 0.5) OVER()</formula>
<unagg-formula>%1</unagg-formula>
<argument type='int' />
</function>
Expand Down Expand Up @@ -929,13 +929,13 @@
<argument type='date' />
</function>
<function group='aggregate' name='PERCENTILE' return-type='real'>
<formula>PERCENTILE_CONT((%1), (%2))</formula>
<formula>PERCENTILE_CONT((%1), (%2)) OVER()</formula>
<unagg-formula>%1</unagg-formula>
<argument type='real' />
<argument type='localreal' />
</function>
<function group='aggregate' name='PERCENTILE' return-type='real'>
<formula>PERCENTILE_CONT((%1), (%2))</formula>
<formula>PERCENTILE_CONT((%1), (%2)) OVER()</formula>
<unagg-formula>%1</unagg-formula>
<argument type='int' />
<argument type='localreal' />
Expand Down

0 comments on commit 122db2f

Please sign in to comment.