datastax-enterprise - 使用带有查询时间戳字段的 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>
知道为什么吗?
解决方案
这是 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
推荐阅读
- docker - ICMP 在 docker 中使用 blackbox_exporter 检查
- php - 无法使用域访问xampp的主页
- ios - iOS 13 的 PresentationControllerDidDismiss() 在紧凑环境中未调用 Popover
- elasticsearch - 在使用 Hive/弹性连接器索引数据时启用压缩
- angular - 有没有办法等待 DOM 在 Angular 中更新?
- ios - 我可以立即停止第一个 UIView 动画并在同一视图上启动第二个动画吗?
- python - 如何在 Pytorch 中反转布尔值的张量?
- php - 适用于 Android 的 PHP 多语言 Web 服务
- graphql - 仅在 graphql 需要的情况下如何获取特定字段?
- c# - Application.Current.MainWindow.Topmost = true 仅适用于我的应用程序第一次运行