Comments (5)
@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.
@michae2 @rafiss
Hi, I just opened a pr #126048 to fix this issue, can you take a look and give some suggestions? Thanks a lot!
from cockroach.
Related Issues (20)
- ccl/crosscluster/physical: TestStreamingRegionalConstraint failed
- pkg/sql/schemachanger/schemachanger_test: TestConcurrentSchemaChanges failed HOT 1
- pkg/sql/schemachanger/schemachanger_test: TestConcurrentSchemaChanges failed
- roachtest: restore/tpce/32TB/aws/inc-count=400/nodes=15/cpus=16 failed HOT 1
- roachtest: perturbation/metamorphic/partition failed HOT 3
- roachtest: failover/non-system/disk-stall failed HOT 5
- kv: run migration to strip synthetic bit from MVCC keys HOT 2
- : failed HOT 1
- sql: enum stats can be invalid after schema change, causing assertion failure HOT 1
- Sentry: datum.go:5346: comparison of two different versions of enum %!s(func() string=0x14c5680) oid ×: versions 64 and 63 (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | ... HOT 1
- Sentry: datum.go:5346: comparison of two different versions of enum %!s(func() string=0x14c5680) oid ×: versions 64 and 63 (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | ... HOT 1
- roachtest: unoptimized-query-oracle/disable-rules=half/rand-tables failed HOT 1
- Sentry: catch.go:29: runtime error: invalid memory address or nil pointer dereference (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/u...
- pkg/ccl/testccl/sqlccl/sqlccl_test: TestExplainGist failed HOT 1
- roachtest: kv/gracefuldraining failed HOT 1
- roachtest: tpcc/mixed-headroom/n5cpu16 failed
- raft: stop relying on heartbeats for sending MsgApps
- Missing Gemfile in the repository for Jekyll setup HOT 8
- multitenant: different system schemas produced if cluster is bootstrapped vs upgraded
- pcr: add `getReplicatedTime()` to tenant connector HOT 1
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.