Custom types don't work in joins#510
Conversation
f097ae2 to
8953387
Compare
|
I'm pretty sure these types are just not compatible? One is stored as a |
|
I've removed the commits from the |
|
I'm not sure I understand. I'm not trying to compare between attributes of different types but of the same type ( From my understanding the error is happening when joining across tables and the join key coming from elixir side is not being properly casted/encoded in the query. For example, |
|
Ah, okay, apologies for the confusion :) Can you open an issue and reference this PR? I will re-add the tests and investigate 🙇 |
|
I've found the issue, will work on a fix 😄 |
|
@quartz55 might be worth confirming actually: in your real issue, is the value that you are using a tuple? i.e |
|
Looks like there is another issue, which is that (from what I can tell) |
|
Okay, there were three separate bugs related to tuple values and multidimensional array values here. They are fixed now in |
My real issue is more or less replicated by the |
|
Does it still fail after the recent fixes? |
|
Pointing both to |
Custom types aren't being correctly casted in joins. The added test is failing with these two errors.
Should be casted as float tuple (
float[]):Should be casted to string by calling
StringPoint.dump_to_native/2: