Linary
Linary
**The root cause is that javascript does not support long variables.** If you have to use javascript, you can use the primary key id or a custom id (non-long). If...
Yeap! The config option `snowflake.force_string=true` will convert all id to string. HugeGraph support UUID, but need use `customizedUUID()` that you may cannot use it.
#https://github.com/hugegraph/hugegraph-loader/pull/107
@860960342 对于小数据量,你把has_Category属性删掉后,直接重导一遍就会覆盖旧的顶点数据了,不需要使用 update_strategies。对于大量数据的批量移除某旧属性,loader 暂时还不支持。 如果数据量没有那么多,并且has_Category这个属性是可空的,可以用client写java代码,或者用gremlin语句的方式删掉该属性。 另外你的需求是不是可以总结为:第一次导入了一批顶点或边以后,发现某个属性冗余了,然后想在不修改数据源本身的情况下移除掉某属性,是这样吗?
@860960342 有的顶点需要has_Category属性,有的不需要这个属性,这个的区分条件是什么?我这么问是因为有另一个 issue https://github.com/hugegraph/hugegraph-loader/issues/116 有相似的需求,这个 issue 要实现的功能是根据某个列的值来决定这一行是否需要插入。比如某列`status`的值为 1 时就插入,为 0 时就跳过。如果你的需求也是这样的,我们会尽快实现该功能。 修改数据源之后,再次导入即可,HugeGraph的覆盖策略与你的要求是匹配的。
感谢 @imbajin 童鞋的回复,很全面,很细致! 👍👍👍 @860960342 如果没有再次导入过数据的话,看起来确实像是一个BUG,你可以按照 @imbajin 说的方式用 REST-API 直接创建一条数据,然后当下查询,这时是没有旧属性的,然后过20分钟再用 REST-API 查试试,如果确实还是有,那就是 server 的 BUG。 如果用 REST-API 查没有但是在 studio 里面查是有的,那说明是 client 或 studio 的 BUG。
Firstly ``` graph.schema().getIndexLabel('testil').status() ``` The status is `CREATING` ``` graph.schema().indexLabel('testil').remove() graph.schema().getIndexLabel('testil').status() ``` Expect the status `DELETING`, but is still `CREATING`,
是hubble后端序列化顶点和边的属性时多写了一次属性的key,已经修复了。
@eternalxj `mapping`域需要修改成`field_mapping`
@userhtm 你好,能给出一段复现此问题的最小版本的代码吗?除了getOrCreate方法,构造的模拟数据,怎么调getOrCreate方法的也贴一下,不方便的地方用伪代码或文字代替也可以