Skip to content
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

Cluster model user_id definition #23

Open
obijuan-kenobi opened this issue Aug 3, 2019 · 1 comment
Open

Cluster model user_id definition #23

obijuan-kenobi opened this issue Aug 3, 2019 · 1 comment

Comments

@obijuan-kenobi
Copy link

If you follow a cluster link on the analytics page, the web app produces an error:

django.db.utils.ProgrammingError: operator does not exist: character varying = integer
LINE 1: ...lytics_rating" WHERE "analytics_rating"."user_id" IN (SELECT...
                                                             ^
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.

I tracked the issue to the analytics.cluster.user_id definition, which should be:
user_id = models.CharField(max_length=16) << not 'integer'

@Heermosi
Copy link

Heermosi commented Sep 11, 2019

I've fixed this, same.
Either can you turn it to integer or turn it to char field.
Besides. This is one of many challenges here man.
If you cannot find out more than 10 of them .... good luck, try your best to find them all.
Which means you've fully understood the content of the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants