Comments (3)
Hello, I am Blathers. I am here to help you get the issue triaged.
I have CC'd a few people who may be able to assist you:
- @cockroachdb/sql-queries (found keywords: optimizer,vectorized)
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.
from cockroach.
Hi @rootjalex, thanks for filing an issue.
The optimizer might consider rewriting these expressions, i.e.
greatest(a, b) < c -> a < c AND b < c
andleast(a, b) < c -> a < c OR b < c
. I'm new to cockroachdb, so not sure how much the optimizer already tries to rewrite conditionals, but if I do thisgreatest
rewrite manually, I get the index behavior that I expect (i.e.x < 15000 AND y < 15000
produces afilter(index join(scan))
).
Yes, I think to optimize this we'd need to add another comparison normalization rule, similar to these.
from cockroach.
Unfortunately, the transformation suggested is not valid in the presence of NULL
arguments to greatest
/least
. See my comment here: #119979 (review)
I think there are likely some tweaks we can make to make it valid, though there will likely be limitations that may limit its usefulness in addressing the original goal of leading to constrained index scans.
from cockroach.
Related Issues (20)
- roachtest: backup-restore/small-ranges failed [mismatched type in violatesFkConstraintsHelper query] HOT 7
- pkg/ccl/kvccl/kvtenantccl/upgradeinterlockccl/upgradeinterlockccl_test: TestTenantUpgradeInterlock failed
- pkg/sql/logictest/tests/local/local_test: TestLogic_upsert failed HOT 1
- ccl/sqlproxyccl/tenant: TestRefreshThrottling failed HOT 2
- sql: TestTrackOnlyUserOpenTransactionsAndActiveStatements failed
- Sentry: typing.go:172: could not find overload for × aggregate (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/opt/memo.FindAggreg...
- jobs: TestPauseReason failed HOT 2
- : failed HOT 1
- Incorrect result may caused by optimization HOT 3
- bulk: retry with exponential backoff when adding SSTables HOT 1
- backupccl: fix online restore return statement HOT 1
- pkg/sql/logictest/tests/fakedist-vec-off/fakedist-vec-off_test: TestLogic_builtin_function failed
- opt: improve row count estimates for inverted filters HOT 1
- SQL Shell lexical error: unterminated string HOT 1
- sql: TestExplainRedact failed HOT 1
- storage: consider using range keys for MVCCDeleteRangeUsingPredicate HOT 2
- ui: databases page request improvements
- storage: TestPebbleIterator_Corruption failed HOT 1
- kv: add appBatchStats.numAddSST to handleRaftReadyStats.SafeFormat HOT 1
- kvserver: during a partial partition, non-leaders wait 4s for a lease acquisition timeout HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockroach.