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

Trying to connect to Cassandra get error "Cannot read property 'results' of undefined" #548

Closed
stasberkov opened this issue Apr 27, 2020 · 6 comments · Fixed by #576
Closed
Labels

Comments

@stasberkov
Copy link

stasberkov commented Apr 27, 2020

Describe the bug
Trying to connect to Cassandra get error "Cannot read property 'results' of undefined"

"Error while preparing columns completions for connection cas06 Cannot read property 'results' of undefined"

To Reproduce
Just try to connect

Screenshots
image

Desktop (please complete the following information):

  • SQLTools Version: 0.21.7
  • VSCode Version: 1.44.2
  • Driver Used/Version: Cassandra
  • OS: Windows 10
@stasberkov
Copy link
Author

@EpicEric please help

@EpicEric
Copy link
Contributor

Which version of Cassandra are you using?

@stasberkov
Copy link
Author

stasberkov commented Apr 27, 2020 via email

@EpicEric
Copy link
Contributor

EpicEric commented Apr 27, 2020

I can reproduce this error in Cassandra v2.2.14. It seems that Cassandra had a different way to store keyspace/table/column data prior to DataStax Enterprise v5 (equivalent to versions of Cassandra prior to 3.0). Hence, the current queries error out for older versions of Cassandra.

This would require using different queries (from the first link) depending on the system version, and whether the database is Cassandra or another CQL-like database (i.e. Scylla).

I can work on a fix as soon as I have some free time.

@EpicEric
Copy link
Contributor

@stasberkov Sorry for taking so long to get back to you. I've opened PR #576, which should fix this.

@mtxr mtxr closed this as completed in #576 May 23, 2020
@stasberkov
Copy link
Author

@EpicEric thank you so much!

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

Successfully merging a pull request may close this issue.

2 participants