Since Cassandra 3.7 I cannot import anymore a model using UserType without having initialized first a connection:
Problem comes from this code:
In ModelMetaClass._new_ (cassandra/cqlengine/models.py).
I don't think you can expect having a fully setup connection when import a class inheriting from base model class.
I found at least one other person complaining from the same issue:
PS: It used to work before upgrading to 3.7.
Best regards, Adam.
I am wondering if we could simply re-apply the checks we had before this new feature. IIRC, only 1 or 2 management functions had this connection check. Am I right?
Ready for further review. Commit history needs some cleanup, but the dedupe we talked about should be gone. This may need more tests.
Documentation and a couple small code changes ready for final review.
Great Job, added some metadata docs to the integration tests, and some negative validation scenarios.
Sending this to done.