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

[Bug]: describe model raises NotImplementedError in console mongo shell #7389

Closed
ea-rus opened this issue Sep 21, 2023 · 1 comment · Fixed by #9126
Closed

[Bug]: describe model raises NotImplementedError in console mongo shell #7389

ea-rus opened this issue Sep 21, 2023 · 1 comment · Fixed by #9126
Assignees
Labels
bug Something isn't working Team: SQL & Text2SQL Anything related to the text-to-SQL project

Comments

@ea-rus
Copy link
Contributor

ea-rus commented Sep 21, 2023

Short description of current behavior

Calling describe model from console mongodb shell return exception

File "/usr/local/lib/python3.8/dist-packages/mindsdb/api/mongo/server.py", line 306, in get_answer
response = responder.handle(msg_bytes, request_id, self.session.mindsdb_env, self.session)
File "/usr/local/lib/python3.8/dist-packages/mindsdb/api/mongo/server.py", line 175, in handle
documents = responder.handle(query, request_args, mindsdb_env, session)
File "/usr/local/lib/python3.8/dist-packages/mindsdb/api/mongo/classes/responder.py", line 45, inhandle
return self.result(query, args, env, session)
File "/usr/local/lib/python3.8/dist-packages/mindsdb/api/mongo/responders/aggregate.py", line 64,in result
ast_query = aggregate_to_ast(query, request_env.get('database', 'mindsdb'))
File "/usr/local/lib/python3.8/dist-packages/mindsdb/api/mongo/responders/aggregate.py", line 52,in aggregate_to_ast
raise NotImplementedError
Uncaught NotImplementedError

The same model and server works well from shell built in mongodb compass:
image

Video or screenshots

image

Expected behavior

No response

How to reproduce the error

  • Install mongo shell
  • Connect to cloud using it:
    mongosh -u <login> -host cloud.mindsdb.com --tls
  • switch database: use mindsdb;
  • describe existing model:
    db.home_rentals_model.stats({'scale':'features'});

Anything else?

No response

@ea-rus ea-rus added the bug Something isn't working label Sep 21, 2023
@hamishfagg
Copy link
Contributor

This isn't really my wheelhouse. @ea-rus ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team: SQL & Text2SQL Anything related to the text-to-SQL project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants