Skip to content

Conversation

gem-neo4j
Copy link
Contributor

Fixes: #444

Gives support for import Graphml with NAN values for number types. Int and Long in Java do not support NaN, so it will be a Float.NaN in this case, the only potential issue is if a user has a constraint on what they are importing for having it as an INTEGER, but I believe this is a better issue than the import just failing with an exception.

Copy link
Collaborator

@hvub hvub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

The documentation should point out explicitly that NANs are always imported as Floats regardless of the attr.type in <key ...> element of the imported GraphML file.

@gem-neo4j
Copy link
Contributor Author

@gem-neo4j gem-neo4j merged commit 909ddaa into dev Jul 7, 2025
12 of 13 checks passed
@gem-neo4j gem-neo4j deleted the dev_add_graphml_nan_support branch July 7, 2025 06:59
@hvub hvub mentioned this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed import graphml due to 'nan' input string
2 participants