Closed colt-jay closed 3 years ago
@colt-jay : awesome catch - I just realized that I only have strings for my keys/identifying attributes. And thanks for the nice tracing of the bug! I just rewrote that whole section for the next version, but I will provide a hotfix asap.
reprodced:
09:34:54.237 [Test worker] INFO com.bayer.dt.grami - nothing previously migrated for [tag] - starting with row 0
java.util.concurrent.ExecutionException: grakn.client.exception.GraknClientException: UNKNOWN: grakn.core.kb.graql.exception.GraqlSemanticException: Value 28974 is not compatible with attribute value type: java.lang.Long. Please check server logs for the stack trace.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
@colt-jay : please use GraMi 0.0.2-hotfix-1 and let me know if this resolves your issue.
@hkuich Looks to have solved the issue and thank you for the quick turn around!
Context
I am trying to load in a relation table that looks like the following:
Quick and dirty sample schema:
The
label
andtext
entity loaders have worked fine however upon attempting to migrate thistag.csv
file I am seeing the following error:Suspected Error
I suspected that the match query was not correctly casting the
text_id
tolong
and found that currently the token is passed through thecleanToken
method here https://github.com/bayer-science-for-a-better-life/grami/blob/f98b2b4e33094eb33275bd7fb6d1cc3676edc51a/src/main/java/generator/RelationInsertGenerator.java#L148 but that there is no further cast statement that I can find.I was curious why this didn't break on the entity insertion but it seems that you do cast the value in the EntityInsertGenerator here https://github.com/bayer-science-for-a-better-life/grami/blob/f98b2b4e33094eb33275bd7fb6d1cc3676edc51a/src/main/java/generator/GeneratorUtil.java#L64