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

Cassandra + "not implemented" Exception #876

Open
matJC opened this issue Feb 17, 2023 · 2 comments
Open

Cassandra + "not implemented" Exception #876

matJC opened this issue Feb 17, 2023 · 2 comments

Comments

@matJC
Copy link

matJC commented Feb 17, 2023

I'm working up a basic example of SchemaHero + Cassandra and have run into an issue where the DB controller pod is producing the following error:

manager {"level":"error","msg":"failed to get connection details for database: not implemented"}

This is my configuration:

---
# https://schemahero.io/docs/connecting-databases/creating-db-resource/

apiVersion: databases.schemahero.io/v1alpha4
kind: Database
metadata:
  name: cassandra-testdb
spec:
  connection:
    cassandra:
      hosts: [ ... ] # omitted
      keyspace:
        valueFrom:
          secretKeyRef:
            name: db-credentials-schema-hero-example-secret
            key: /example/keyspace
      username:
        valueFrom:
          secretKeyRef:
            name: db-credentials-schema-hero-example-secret
            key: /example/db-username
      password:
        valueFrom:
          secretKeyRef:
            name: db-credentials-schema-hero-example-secret
            key: /example/db-password

---
apiVersion: schemas.schemahero.io/v1alpha4
kind: Table
metadata:
  name: players
spec:
  database: cassandra-testdb
  name: players
  schema:
    cassandra:
      primaryKey:
        - [id]
      columns:
        - name: id
          type: varchar

I'm running SchemaHero version v0.14.0-alpha.7, the alpha version because this includes a fix for a previous cassandra-related issue, #874.

@divolgin
Copy link
Contributor

that tracks

	} else if driver == "cassandra" {
		return "", "", errors.New("not implemented")

@matJC
Copy link
Author

matJC commented Feb 24, 2023

So I'm going to move away from using Schema Hero for cassandra schema management at this point. I appreciate the good work that has been put in here all the same, but I'd suggest that mention of Cassandra should be removed from the docs if it's not supported at least to the point of being able to manage schemata in a basic sense.

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