You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: select return result is incorrect which where filter condition is unique index #19108
orders ddl:
CREATE TABLE orders ( O_ORDERKEY bigint NOT NULL, O_CUSTKEY int NOT NULL, O_ORDERSTATUS char(1) NOT NULL, O_TOTALPRICE decimal(15,2) NOT NULL, O_ORDERDATE date NOT NULL, O_ORDERPRIORITY char(15) NOT NULL, O_CLERK char(15) NOT NULL, O_SHIPPRIORITY int NOT NULL, O_COMMENT varchar(79) NOT NULL,
PRIMARY KEY (O_ORDERKEY),
UNIQUE KEY o_custkey (O_CUSTKEY)
)
Expected Behavior
No response
Steps to Reproduce
CREATE TABLE `orders` (
`O_ORDERKEY` bigint NOT NULL,
`O_CUSTKEY` int NOT NULL,
`O_ORDERSTATUS` char(1) NOT NULL,
`O_TOTALPRICE` decimal(15,2) NOT NULL,
`O_ORDERDATE` date NOT NULL,
`O_ORDERPRIORITY` char(15) NOT NULL,
`O_CLERK` char(15) NOT NULL,
`O_SHIPPRIORITY` int NOT NULL,
`O_COMMENT` varchar(79) NOT NULL,
PRIMARY KEY (`O_ORDERKEY`),
UNIQUE KEY `o_custkey` (`O_CUSTKEY`)
)
load data url s3option {'endpoint'='http://minio.minio-mo.svc.cluster.local','access_key_id'='xxx','secret_access_key'='xxx','bucket'='mo-load-data', 'filepath'='tpch_100/orders.tbl'} into table orders fields terminated by '|' lines terminated by '\n' parallel 'true';
select O_ORDERKEY,O_CUSTKEY from orders where O_CUSTKEY in (4);
select O_ORDERKEY,O_CUSTKEY from orders where O_ORDERKEY =544949286;
Activity
badboynt1 commentedon Sep 30, 2024
因为load时不去重,导致unique约束失效,数据出错。
jensenojs commentedon Oct 23, 2024
no process
14 remaining items
huby2358 commentedon Dec 3, 2024
无
huby2358 commentedon Dec 12, 2024
提的pr会导致tke tech load超时严重,还需要定位
huby2358 commentedon Dec 17, 2024
同上,暂时没投入
huby2358 commentedon Dec 23, 2024
未投入
huby2358 commentedon Dec 26, 2024
未投入
huby2358 commentedon Dec 31, 2024
未投入
huby2358 commentedon Jan 5, 2025
之前提的pr,load 走去重后,会有卡住和oom问题,卡住的问题找到必现的场景,可以避免,卡住的原因还没定位出来,目前看到是dispatch在多cn场景下卡住了,merge和dispatch互相在等,oom的问题抓了下面malloc的profile, 看起来是会同时最shufflebuild, 由于load的这个文件很大,这块流程代码不熟还要再看一下。

huby2358 commentedon Jan 5, 2025
卡住的堆栈


huby2358 commentedon Jan 10, 2025
oom的定位还需要定位
huby2358 commentedon Jan 16, 2025
同上
huby2358 commentedon Jan 21, 2025
同上
huby2358 commentedon Jan 24, 2025
正在定位,在oom 内存占用比较多的地方,打日志,对于load2G多的文件, 下图这里分配的内存不到4G, top峰值有20多G,
huby2358 commentedon Jan 24, 2025
这是之前在129跑抓的,这上面内存扩张更明显,今天尝试在129跑一次,抓一下日志, 但是oom导致129挂了,现在连不上
fengttt commentedon Apr 25, 2025
The later discussion has nothing to do with the original problem any more. Close. OOM should file new bug.