首页 > 解决方案 > 使用带有查询时间戳字段的 DseGraphFrame 时出错

问题描述

我有一个定义了属性的Person标签created

schema.propertyKey(“created”).Timestamp().single().create()

尝试使用 DseGraphFrame 使用以下created属性过滤 Person 标签时出现以下错误dse spark

scala> gV().hasLabel("Person").has("created", P.gt("2018-10-07T14:46:26.790Z")).count().next()

org.apache.spark.sql.AnalysisException:由于数据类型不匹配,无法解析“(created> 1538923586790L)”:“(created> 1538923586790L)”(时间戳和bigint)中的类型不同。; 'Filter ((~label#270 = Person) && (created#280 > 1538923586790))...</p>

知道为什么吗?

标签: datastax-enterprisedatastax-enterprise-graphdse-graph-frames

解决方案


这是 DSE 版本中的一个缺陷,但在 DSE 5.1.8 和 DSE 6.0.0 中得到解决。

见这里 - https://docs.datastax.com/en/dse/5.1/dse-admin/datastax_enterprise/releaseNotes/RNdse.html并寻找 DSP-15146


推荐阅读