【发布时间】:2016-01-14 16:41:47
【问题描述】:
我正在尝试查询分布式系统。
我有一个 Postgres 实例和一个 MongoDB 实例,它们都与 Apache Drill 集成。
-
cast_info集合在 MongoDB 上。 -
title table在 Postgres 上。
当我尝试启动时:
SELECT ci.person_id, count(t.title)
FROM mongo.imdb.cast_info as ci
JOIN postgres.public.title as t
ON ci.movie_id = t.id
WHERE t.kind_id = 1
GROUP BY ci.person_id
LIMIT 10;
我收到了这个错误:
org.apache.drill.common.exceptions.UserRemoteException:系统错误: IllegalStateException: 已经有用于 id 的 POJO (java.lang.Integer) [com.fasterxml.jackson.annotation.ObjectIdGenerator$IdKey@3372bbe8] 片段 3:0 [错误 ID:69f02c9a-b8b0-444b-9077-fd3cc1799750 on 192.168.0.10:31010]
问题似乎与 GROUP BY 子句有关,因为如果我删除 GROUP BY(和计数)行,查询会成功运行。
谁能帮帮我?
【问题讨论】:
标签: mongodb postgresql apache-drill