Open marcrasi opened 1 month ago
Hi @marcrasi, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
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 have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Thanks for the report! I have a tentative draft to address this in #128329.
Describe the problem
I'm having a problem where I have an expression index and I want to do a lookup join using that index, but Cockroach doesn't seem able to use the expression component of the index in the lookup join equality.
I was able to work around this by putting the expression in a stored column, so this isn't super urgent for me, but I thought it would be helpful for me to file an issue anyways.
I searched around for similar issues and I thought maybe this might be related to https://github.com/cockroachdb/cockroach/issues/123320, because that's also a case where Cockroach isn't using an expression component of an index that it should be able to use.
To Reproduce
Here's a reduced case that reproduces the problem. I did some queries with stored column indices for comparison -- those work as expected. I wrote "UNEXPECTED" over the queries with expression indices that don't do what I'd expect.
Expected behavior The queries using the expression index should have worked the same as the queries using the stored column index.
Environment: I'm running
cockroach start-single-node
on my macbook, and connecting to it withcockroach sql
.Jira issue: CRDB-40667