-
Notifications
You must be signed in to change notification settings - Fork 470
Added date() function to Cypher #1138
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
Conversation
|
I did not find Also, I was able to achieve the result using a PG function. Do you think we should add another implementaiton of date while we can use PG's? |
|
@Allison-E You are not using the current master branch. The master is on 1.4.0, not 1.3.0. @rafsun42 I think it is okay to include Neo4j functions as they created the openCypher documentation. Considering how vague and incomplete the openCypher specification can be, it is a good idea to look at Neo4j for clarifications. |
|
Hi @rafsun42, thanks for pointing out that @jrgemignani, I'll rebase the code to the current master branch. |
|
@Allison-E The conflicts still exist. Also, there should not be any 'rebase' or 'merge' commit. |
fe52114 to
14966bb
Compare
All done, @rafsun42. |
|
@Allison-E The |
Sorry, I don't think I understand, @rafsun42. Could you please describe what you are trying to do that isn't working? |
|
The following query does not work. The SELECT * FROM cypher('graph', $$ RETURN date('1999-01-08') $$) as (a agtype); |
|
@rafsun42, I was hoping to work on that soon. |
|
This PR is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for further 7 days with no activity |

I've begun implementing Cypher's temporal functions in AGE, beginning with date().
Here it is in action.
It could also be converted to PostgreSQL's
datetype, but the record returned by AGE must first be converted to any of PostgreSQL's character types (char,varchar, ortext).Limitations
Although the
date()function in Cypher accepts an optionalzoneparameter to specify what timezone to return, it isn't implemented here yet. Currently, the local time zone is returned. Hopefully, that will be implemented soon.