Skip to content
New issue

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

Unknown function `coalesce'. #3522

Closed
CPWstatic opened this issue Dec 21, 2021 · 1 comment · Fixed by #3653
Closed

Unknown function `coalesce'. #3522

CPWstatic opened this issue Dec 21, 2021 · 1 comment · Fixed by #3653
Assignees
Labels
priority/hi-pri Priority: high type/bug Type: something is unexpected
Milestone

Comments

@CPWstatic
Copy link
Contributor

Please check the FAQ documentation before raising an issue

(root@nebula) [sf1]> return coalesce(1, null);
[ERROR (-1004)]: SyntaxError: Unknown function  near `coalesce'
@CPWstatic CPWstatic added the type/bug Type: something is unexpected label Dec 21, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Dec 21, 2021
@wey-gu
Copy link
Contributor

wey-gu commented Dec 25, 2021

I am having the same issue today, coalesce won't take the second argument.

(root@nebula) [amundsen]> """
                       -> MATCH (tbl)-[:`COLUMN`]->(`col`:`Column`)-[USES_WHERE_CLAUSE]->(whr)-[WHERE_CLAUSE_OF]->(wq:`Query`)-[:HAS_EXECUTION]->(whrexec:Execution)
                       ->         WHERE id(tbl) == "hive://gold.test_schema/test_table1"
                       ->         WITH tbl, sum(coalesce(whrexec.execution_count,0)) as where_exec_cnt
                       ->         RETURN tbl, where_exec_cnt
                       -> """
[ERROR (-1004)]: SyntaxError: Unknown function  near `coalesce'
(root@nebula) [amundsen]> """
                       -> MATCH (tbl)-[:`COLUMN`]->(`col`:`Column`)-[USES_WHERE_CLAUSE]->(whr)-[WHERE_CLAUSE_OF]->(wq:`Query`)-[:HAS_EXECUTION]->(whrexec:Execution)
                       ->         WHERE id(tbl) == "hive://gold.test_schema/test_table1"
                       ->         WITH tbl, sum(coalesce(whrexec.execution_count)) as where_exec_cnt
                       ->         RETURN tbl, where_exec_cnt
                       -> """
+-----+----------------+
| tbl | where_exec_cnt |
+-----+----------------+
+-----+----------------+
Empty set (time spent 27436/208757 us)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/hi-pri Priority: high type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants