我有3个表events_0
,events_1
,events_2
,其中Engine = MergeTree
和1个表events
,其中Engine = Merge
CREATE TABLE events as events_0 ENGINE=Merge(currentDatabase(), '^events');
当我运行
之类的sql查询时select uuid from events where uuid = 'XXXX-YYY-ZZZZ';
我的回答重复了
┌─uuid──────────┐
│ XXXX-YYY-ZZZZ │
└───────────────┘
┌─uuid──────────┐
│ XXXX-YYY-ZZZZ │
└───────────────┘
答案 0 :(得分:2)
尝试将//In my service
userRepository.findByEmail(email);
public interface IUserRepository extends JpaRepository<User,
Integer>{
User findByEmail(String email);
}
添加到select子句中,以查看哪个表正在生成数据。
_table
对我来说,这似乎是一种自我递归。您可能需要重命名正则表达式select _table, uuid from events where uuid = 'XXXX-YYY-ZZZZ';