Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unexpected Error: overflow during Encode #111473

Open
bajinsheng opened this issue Sep 29, 2023 · 4 comments
Open

Unexpected Error: overflow during Encode #111473

bajinsheng opened this issue Sep 29, 2023 · 4 comments
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-queries SQL Queries Team

Comments

@bajinsheng
Copy link

bajinsheng commented Sep 29, 2023

Describe the problem

Please describe the issue you observed, and any steps we can take to reproduce it:

To Reproduce

CREATE TABLE t4 (c0 CHAR, c1 INTERVAL UNIQUE);
INSERT INTO t4 (c0, c1) VALUES('1', NULL);

SELECT * FROM t4 WHERE (INTERVAL '100000000 year')<t4.c1; -- {}
SELECT * FROM t4 @{FORCE_INDEX=t4_c1_key} WHERE (INTERVAL '100000000 year')<t4.c1; -- ERROR: overflow during Encode

Expected behavior
Since the index does not exist, I expect it either ignores the index hint or throws the error: index "t4_c1_key" not found.

Environment:

  • CockroachDB version [CockroachDB CCL v23.2.0-alpha.00000000-dev-d7738743c955be36b1c9304a40d9e4e7b3edc4ad]
  • Server OS: [Ubuntu]
  • Client app [cockroach sql]

Additional context
What was the impact?

Add any other context about the problem here.

Jira issue: CRDB-31913

@bajinsheng bajinsheng added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Sep 29, 2023
@blathers-crl
Copy link

blathers-crl bot commented Sep 29, 2023

Hello, I am Blathers. I am here to help you get the issue triaged.

Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.

I was unable to automatically find someone to ping.

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-untriaged blathers was unable to find an owner labels Sep 29, 2023
@yuzefovich yuzefovich removed the X-blathers-untriaged blathers was unable to find an owner label Sep 29, 2023
@yuzefovich
Copy link
Member

Thanks for the report! I think this is a known issue #45993, so I'm closing as a dup.

@yuzefovich
Copy link
Member

Actually, sorry, that issue is about an INSERT, and this issue is for a read-only query. We'll take a closer look shortly.

@yuzefovich yuzefovich added the T-sql-queries SQL Queries Team label Sep 29, 2023
@bajinsheng
Copy link
Author

Thanks for your prompt reply! Hope this report is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-queries SQL Queries Team
Projects
Status: Bugs to Fix
Development

No branches or pull requests

2 participants