-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NonUniqueFieldNameException: column reference "xxx" is ambiguous #4773
Comments
Not sure what you mean by this. |
I am of your opinion but couldn't find a way to do the same without adding such a virtual property. I cannot add anything related to A and B in N, as A and B are in a separate Package. As A and B both have the same node_id, i need a way to link these together without creating additional properties. Do you have a idea to achieve that otherwise? |
If i want all A's where the correspondant B has a specific value, then would normally need to use: By defining the the property with persist:false and fieldName:"node_id" i could reuse the column node_id to create a link between A and B which can be used with: As persist is false it does not try to create more columns or persist something inconsistently. |
I am still not really sure what your problem is (complete repro welcome, maybe we can find a better way), but I will be reverting that part anyway, as I had to do it when rebasing to v6, some tests in there were also failing because of that change. |
I'm sorry for my bad explanation. I will try to create a repro in the next days which contains different packages containing the entities, where the dependency and column-reuse problem is more visible to you. |
Describe the bug
In some, probably rare, circumstances the on part of left join is created without using the alias, even when there is the same column in both tables.
leads to
Stack trace
To Reproduce
A and B are in a separate package than N, so persist: false is a workaround to travel vom A to B without going over N.
A.ts
B.ts
N.ts
Execute:
Expected behavior
Additional context
The usage of
seems to workaround the problem.
Versions
The text was updated successfully, but these errors were encountered: