Skip to content

"Error: CALL not supported yet" on the CALL function on the regression tests #737

@panosfol

Description

@panosfol

Describe the bug
Running the regression tests line by line I get an error

postgres=# SELECT * FROM cypher('cypher_call', $$CALL sqrt(64)$$) as (sqrt agtype);
2023-03-08 19:38:02.077 EET [6722] ERROR:  CALL not supported yet at character 39
2023-03-08 19:38:02.077 EET [6722] STATEMENT:  SELECT * FROM cypher('cypher_call', $$CALL sqrt(64)$$) as (sqrt agtype);
ERROR:  CALL not supported yet

How are you accessing AGE (Command line, driver, etc.)?

  • Command line

What data setup do we need to do?

LOAD 'age';
SET search_path TO ag_catalog;



SELECT create_graph('cypher_call');

SELECT * FROM cypher('cypher_call', $$CREATE ({n: 'a'})$$) as (a agtype);
SELECT * FROM cypher('cypher_call', $$CREATE ({n: 'b'})$$) as (a agtype);

CREATE SCHEMA call_stmt_test;

CREATE FUNCTION call_stmt_test.add_agtype(agtype, agtype) RETURNS agtype
    AS 'select $1 + $2;'
    LANGUAGE SQL
    IMMUTABLE
    RETURNS NULL ON NULL INPUT;

/* 
 * CALL (solo) 
 */

SELECT * FROM cypher('cypher_call', $$CALL sqrt(64)$$) as (sqrt agtype);

What is the command that caused the error?

postgres=# SELECT * FROM cypher('cypher_call', $$CALL sqrt(64)$$) as (sqrt agtype);
ERROR:  CALL not supported yet

Expected behavior
According to the output of the regression tests, it should have returned :

 sqrt 
------
 8.0
(1 row)

Environment (please complete the following information):

  • PostgreSQL Version = 12_14
  • apacheAGE version release/PG12/1.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions