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

apoc.coll.min() and max() do not work on temporal types #1463

Closed
InverseFalcon opened this issue Mar 30, 2020 · 1 comment
Closed

apoc.coll.min() and max() do not work on temporal types #1463

InverseFalcon opened this issue Mar 30, 2020 · 1 comment

Comments

@InverseFalcon
Copy link
Collaborator

Expected Behavior (Mandatory)

APOC max() and min() functions should work on temporal types

Actual Behavior (Mandatory)

They don't. We get an error.

How to Reproduce the Problem

Simple Dataset (where it's possibile)

No dataset needed

Steps (Mandatory)

return apoc.coll.max([date(), date() - duration('p5M')])
results in the following errro:

Failed to invoke function apoc.coll.max: Caused by: java.lang.ClassCastException: java.time.LocalDate cannot be cast to java.lang.Number

Versions

  • OS: Mac OS Mojave
  • Neo4j: 3.5.16
  • Neo4j-Apoc: 3.5.0.9 (and presumably everything below, likely includes 4.0.0.x)
@jexp
Copy link
Member

jexp commented Apr 18, 2020

Merged, @InverseFalcon

@jexp jexp closed this as completed Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants