You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
when use "select count(*) from foregin_table_name" will cause "CypherSyntaxError"
Postgres version: 10.9
Neo4j version : 3.5
Steps to reproduce
1.create a foreign table of neo4j in pg, e.g.
CREATE FOREIGN TABLE neo2.dwf_node_location( state character varying NULL COLLATE pg_catalog."default", city character varying NULL COLLATE pg_catalog."default" ) SERVER neo2 OPTIONS (cypher 'MATCH (n:Location) RETURN n.state AS state,n.city AS city');
2.excute sql
select count(*) from dwf_node_location
Expected behavior
result is 4
Actual behavior
but it causes "CypherSyntaxError" .The debug info is as follows.
Reason
I found these codes cause the bug
the file is neo4jPg/neo4jfdw.py
in line 169 if(needUpdateProjection and len(columns) < len(self.columns)):
I rewrite the code. if(needUpdateProjection and len(columns) > 0 and len(columns) < len(self.columns)):
The CypherSyntaxError disappeared.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
when use "select count(*) from foregin_table_name" will cause "CypherSyntaxError"
CREATE FOREIGN TABLE neo2.dwf_node_location( state character varying NULL COLLATE pg_catalog."default", city character varying NULL COLLATE pg_catalog."default" ) SERVER neo2 OPTIONS (cypher 'MATCH (n:Location) RETURN n.state AS state,n.city AS city');
select count(*) from dwf_node_location
Reason
I found these codes cause the bug
the file is neo4jPg/neo4jfdw.py
in line 169
if(needUpdateProjection and len(columns) < len(self.columns)):
I rewrite the code.
if(needUpdateProjection and len(columns) > 0 and len(columns) < len(self.columns)):
The CypherSyntaxError disappeared.
The text was updated successfully, but these errors were encountered: