[
https://issues.apache.org/jira/browse/CALCITE-6633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890503#comment-17890503
]
Sree Harsha Ramanavarapu commented on CALCITE-6633:
---------------------------------------------------
I have opened a PR for this issue: https://github.com/apache/calcite/pull/4008
> MSSQL Dialect does not generate CEILING function
> ------------------------------------------------
>
> Key: CALCITE-6633
> URL: https://issues.apache.org/jira/browse/CALCITE-6633
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: Sree Harsha Ramanavarapu
> Assignee: Sree Harsha Ramanavarapu
> Priority: Major
> Labels: pull-request-available
>
> SELECT 1.24, FLOOR(1.24), CEIL(1.24) FROM (VALUES (0)) AS [t] ([ZERO])
> 'CEIL' is not a recognized built-in function name.
> The below test will fail because MSSQL support only CEILING and CEIL.
> @Test void testMSSQLCeiling() {
> final String query = "select 1.24, FLOOR(1.24), CEILING(1.24)";
> final String mssqlExpected = "SELECT 1.24, FLOOR(1.24), CEILING(1.24)\n" +
> "FROM (VALUES (0)) AS [t] ([ZERO])";
--
This message was sent by Atlassian Jira
(v8.20.10#820010)