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

Check what happens when coercing an illegal string to a datatype #34

Open
matentzn opened this issue Jul 9, 2020 · 1 comment
Open
Assignees

Comments

@matentzn
Copy link
Collaborator

matentzn commented Jul 9, 2020

Unit Test: treu on a predominantly boolean property -> What happens.

Originally posted by @matentzn in VirtualFlyBrain/vfb-pipeline-config#12 (comment)

@matentzn matentzn self-assigned this Jul 9, 2020
@matentzn
Copy link
Collaborator Author

Neo4J fails hard. To help with debugging, I have added now this message whenever the error is thrown:

ERROR: org.neo4j.graphdb.QueryExecutionException: Property values can only be of primitive types or arrays thereof 2.663 sec
Debugging assistant: This error often (not always!) occurs in conjunction with the dynamic type coercing function (example: properties with more than 1 datatype associated with it in the ontology, say 200 Boolean values and 10 String values, get coerced to Boolean). Search the log the the 'Typing report for' the property for more information.

The corresponding typing report in the log looks like this:

INFO: Typing report for testBooleanVoteCoerce (threshold 0.66): STRONG WARNING: More than one type recorded, ambiguous typing! String: 1 (0.33); Boolean: 2 (0.67);  1.093 sec

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