Skip to content

[Bug] overwrite分区表时,查询无结果会报错SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = Index 0 out of bounds for length 0 #45944

Closed
@jalousiex

Description

Search before asking

  • I had searched in the issues and found no similar issues.

Version

3.0.2

What's Wrong?

insert overwrite分区表时,查询无结果会报错
SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = Index 0 out of bounds for length 0

What You Expected?

查询无数据时无写入,也不应该报错

How to Reproduce?

insert overwrite table tab1 partition(*)
select *
from tab1_T t
where 1=2

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions