pingcap / pingcap/tiflash

DataTypeEnum enumeration cannot be empty

Open
#1,982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

affects-6.0 affects-6.1 component/compute component/coprocessor severity/minor type/bug
Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

It raises the error of ERROR 1105 (HY000): DataTypeEnum enumeration cannot be empty when executing the sql select * from table_75_binary_undef as t1 where t1. `col_char(20)_key_signed` <> (select `col_enum_key_signed` from table_1_binary_undef as t2 where t2. `col_decimal(40, 20)_key_signed` like "had" or t2. `col_int_undef_signed` between t2. `col_decimal(40, 20)_key_signed` and '05:06:40' and t2. `col_smallint_undef_signed` not between t2. `col_datetime_key_signed` and t2. `col_varchar(20)_undef_signed` order by pk asc limit 1); . While the TiKV's engine is successful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported SQL against TiFlash and TiKV, then compare how each engine handles the DataTypeEnum expression. The issue is resolved when TiFlash no longer raises the empty-enumeration error and matches TiKV's successful behavior for this query.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.