Open tobuka opened 1 year ago
Hi @ViktoriyaBurdey ๐ Would you please try upgrading Cube to the latest version? I've tested this with 0.33.48 and both code snippets you've provided worked for me like a charm, unchanged.
I've updated cube to version 0.33.48 (0.33.43 for clickhouse-driver) but it's not help. Error the same - Compile errors: Included member 'patient_network_age' conflicts with existing member of 'test_view'. Please consider excluding this member.
Maybe I can check any configurations or something like that?
May I kindly ask you to reproduce this in Cube Cloud? It's hard to debug without a common ground.
Thanks, we've found the solution. We had problem in repositoryFactory option
Thanks, we've found the solution. We had problem in repositoryFactory option
Hey @ViktoriyaBurdey - Can you please explain further? I am having similar issues
@fracca it seems like that happens when you have a cube and a view that share the same name (up to a base_
) prefix. Changing the views name to something different resolved the issue
For anyone having this problem, we've found out that our problem was database permissions.
If your cube instance uses an user that does not have proper access to the database table you're targeting with the view, cubejs' schema compiler just goes crazy and spits out the Included member 'X' conflicts with existing member of 'Y'
errors. Giving the user the appropriate permissions solves it all.
When you use a table with improper permissions in a normal cube, you get the proper error message; I would recommend cubejs to fix this issue to stop confusing people. We lost a lot of time before we realised what the actual issue was.
@nolde Could you please help to reproduce? A minimal data model example, a minimal database schema, and a command to set "improper" permissions would be really helpful.
@igorlukanin sure!
This will completely break the schema compiler and stop any queries from being executed.
Describe the bug We have cube:
And we tried to create simple view:
But we got error
Compile errors: Included member 'patient_network_age' conflicts with existing member of 'test_view'. Please consider excluding this member.
We tried to create view like this:
but we got the same error
Expected behavior Working view
Version: 0.33.29