简单 select 查询 Ignite 中缺失的行
Simple select query missing rows in Ignite
在具有 2 个条目的 table 上按 ID 选择会产生单个输出结果。
示例如下 table:
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
该问题已由社区修复,并将在即将发布的版本中提供:
https://issues.apache.org/jira/browse/IGNITE-12068
感谢报告。
在具有 2 个条目的 table 上按 ID 选择会产生单个输出结果。
示例如下 table:
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
该问题已由社区修复,并将在即将发布的版本中提供: https://issues.apache.org/jira/browse/IGNITE-12068
感谢报告。