Skip to content

disagg: Failed to query on empty partition table #8220

@JaySon-Huang

Description

@JaySon-Huang

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create database if not exists partition360;
create table if not exists `partition360`.`partition360_8` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `m_req_all` bigint(20) unsigned NOT NULL DEFAULT '0',
  `text` varchar(2048)        NOT NULL default '',
  `create_date` date NOT NULL DEFAULT '2000-01-01',
  `aid` int(11) unsigned NOT NULL DEFAULT '0',
  `atime` time NOT NULL DEFAULT '-01:00:00',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`create_date`) /*T![clustered_index] NONCLUSTERED */,
  UNIQUE KEY `unq_p` (`aid`, `atime`, `create_date`)
  ) PARTITION BY RANGE COLUMNS(create_date) (
  PARTITION `p20210506` VALUES LESS THAN ("20210507"),
  PARTITION `p20210507` VALUES LESS THAN ("20210508")
  )
alter table partition360_8 set tiflash replica 2;

2. What did you expect to see? (Required)

Return empty set without error

3. What did you see instead (Required)

select * from partition360_8;
(1105, 'other error for mpp stream: Code: 49, e.displayText() = DB::Exception: Check n > 0 failed, n = 0, e.what() = DB::Exception,')

4. What is your TiFlash version? (Required)

master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions