在具有2个条目的表上按ID选择将得到单个输出结果。
这是示例表:
CREATE TABLE IF NOT EXISTS Person(
id int,
city_id int,
name varchar,
age int,
company varchar,
PRIMARY KEY (id, city_id)
);
INSERT INTO Person (id, name, city_id) VALUES (1, 'John Doe', 3);
INSERT INTO Person (id, name, city_id) VALUES (1, 'John Dean', 4);
以下查询以相同的顺序执行:
"SELECT * FROM Person" returns both rows - expected
"SELECT * FROM Person WHERE age is null" returns both rows - expected
"SELECT * FROM Person WHERE id = 1" returns only the first row, when it was expected to return both rows.
您能帮助我了解这里发生了什么吗? 谢谢!
编辑
这是一个正在跟踪的重要活动问题:https://issues.apache.org/jira/browse/IGNITE-12068
答案 0 :(得分:0)
该问题已由社区修复,即将在即将发布的版本中提供: https://issues.apache.org/jira/browse/IGNITE-12068
感谢举报。