Comments (4)
@Vidyap23 sure, feel free to submit a PR. Review our contribution guidelines here: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072641/What+is+a+Good+CockroachDB+PR
I recommend fixing this by modifying the MergeWith
function so that it accepts a SearchPath parameter.
cockroach/pkg/sql/sem/tree/function_definition.go
Lines 236 to 238 in 41cb974
When it combines the two lists, it should make sure they are ordered by the order the schemas appear when using SearchPath.Iter()
.
To test this, you can use the example that @michae2 wrote above. You can add that test to pkg/sql/logictest/testdata/logic_test/udf
.
from cockroach.
I haven't looked into what the code is doing right now, but the thing we want it to use when resolving the name is (sessiondata.SearchPath).Iter()
:
cockroach/pkg/sql/sessiondata/search_path.go
Lines 133 to 159 in d4957b3
from cockroach.
The code that needs to be fixed is:
cockroach/pkg/sql/schema_resolver.go
Lines 455 to 467 in 45771c6
as well as possibly other implementations of ResolveFunction
. I think the MergeWith
function should be updated so that it orders the overloads by search path.
from cockroach.
Hi @rafiss I would like to work on this issue, if no one has picked it up yet
from cockroach.
Related Issues (20)
- Test Jira Script runner HOT 1
- bundle: improve visibility into short-circuited execution
- sql: TestCancelQueryPermissions failed HOT 1
- schema: pause schema change job when running out of disk space HOT 2
- ccl/backupccl: TestRestoreCheckpointing failed
- acceptance: TestDockerCLI_test_error_hints failed HOT 2
- : failed HOT 1
- ccl/sqlproxyccl: TestFailedConnection failed
- ccl/streamingccl/streamingest: TestTenantStatusWithFutureCutoverTime failed HOT 1
- streamingccl: add even more LDR metrics to DB console HOT 2
- util/log: TestHTTPSinkHeadersAndCompression failed
- roachtest: disagg-rebalance/aws/n4cpu4 failed HOT 1
- kv/kvnemesis: TestKVNemesisSingleNode failed HOT 3
- roachtest: backup-restore/mixed-version failed HOT 2
- pkg/sql/logictest/tests/cockroach-go-testserver-23.2/cockroach-go-testserver-23_2_test: TestLogic_mixed_version_can_login failed HOT 1
- ccl/streamingccl/streamingest: TestProtectedTimestampManagement failed HOT 1
- Cannot restore backup unknown type kind COMPOSITE HOT 7
- roachtest: jepsen/monotonic/majority-ring-subcritical-skews failed HOT 1
- roachtest: jepsen/g2/majority-ring-subcritical-skews failed HOT 1
- roachtest: jepsen/g2/strobe-skews failed
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.