Trying to fix the Python Driver for 3.2 #9884
Unanswered
odysseaspenta
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi, so yes i think this was a regression, also the executor you are pointing to is the legacy executor(and legacy query engine), that may be completely removed in future, I would say if you want to upgrade the driver to the new version, don't be afraid to break the compatibility with the old version, better a not compatible working version than no version. Regards |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to ensure that the Python driver for 3.2 works fine since there are some warning on the pyorient project site about using it in production with 3.1+. Some of the test cases are failing and I am investigating the issues and found that what the python test case is expecting in response to creating a class is not what the server is now returning.
For example, one test case creates a class
response = client.command("create class my_class extends V")
and then attempts to create a record in this class. In creating the record, it specifies the cluster_id for the record which it is expecting as a response to the create class command. The create class command though returns the number of classes and not the clusters of the newly created class.
In OCommandExecutorSQLCreateClass it returns size instead of cluster_ids
` public Object execute(final Map<Object, Object> iArgs) {
if (className == null)
throw new OCommandExecutionException(
"Cannot execute the command because it has not been parsed yet");
}`
Any suggestions on how this should be fixed and why it broke at some point?
Beta Was this translation helpful? Give feedback.
All reactions