Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] SQL execution failed with Unexpected exception: Index: 0, Size: 0 #47856

Open
2 of 3 tasks
genezx opened this issue Feb 13, 2025 · 0 comments
Open
2 of 3 tasks

[Bug] SQL execution failed with Unexpected exception: Index: 0, Size: 0 #47856

genezx opened this issue Feb 13, 2025 · 0 comments

Comments

@genezx
Copy link

genezx commented Feb 13, 2025

Search before asking

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

Version

1.2.6 && 2.0.1

What's Wrong?

SQL ERROR [1105] [HY000]: errCode = 2, detailMessage = Unexpected exception: Index: 0, Size: 0

What You Expected?

Query succeeds.

How to Reproduce?

CREATE TABLE `test1` (
  `order_sn` varchar(128) NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`order_sn`)
DISTRIBUTED BY HASH(`order_sn`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 3",
"in_memory" = "false",
"storage_format" = "V2",
"enable_unique_key_merge_on_write" = "true",
"disable_auto_compaction" = "false"
);
select 1
 from test1 t 
 left join test1 t2 on t.order_sn = t2.order_sn
 where 
  t.order_sn >= '1'
  and t.order_sn <= '0'
  or t2.order_sn >= '1' 
  and t2.order_sn <= '0'
;

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant