We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am encountering an issue when using the PERCENTILE_DISC function in Babelfish. The following query works correctly in SQL Server:
SELECT PERCENTILE_DISC(0.50) WITHIN GROUP (ORDER BY s.Value) OVER (PARTITION BY s.Code) FROM mydbschema.IssuePercentileDisc AS s
However, when I attempt to run this query in Babelfish, i receive the following error:
OVER is not supported for ordered-set aggregate percentile_disc.
CREATE TABLE IssuePercentileDisc ( Id INT PRIMARY KEY IDENTITY(1,1), Value DECIMAL(19, 4) NOT NULL, Code INT NOT NULL ); INSERT INTO IssuePercentileDisc (Value, Code) VALUES (123.4567, 201); INSERT INTO IssuePercentileDisc (Value, Code) VALUES (234.5678, 201); INSERT INTO IssuePercentileDisc (Value, Code) VALUES (345.6789, 50); INSERT INTO IssuePercentileDisc (Value, Code) VALUES (456.7890, 789);
select PERCENTILE_DISC(0.50) WITHIN GROUP (ORDER BY s.Value) OVER (PARTITION BY s.Code) from IssuePercentileDisc as s
BABEL_4_X_DEV (Default)
None
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
I am encountering an issue when using the PERCENTILE_DISC function in Babelfish. The following query works correctly in SQL Server:
However, when I attempt to run this query in Babelfish, i receive the following error:
Steps to Reproduce
Version
BABEL_4_X_DEV (Default)
Extension
None
Which flavor of Linux are you using when you see the bug?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: