Skip to content

Examples not working #393

Description

@thobai

Hi there,

I've installed your package and tried to get the examples working, but I neither get it working in Jupyter nor in Superset. When trying your first example from the README, I get the error SQLError: no such table: allPeople?include=homeworld.

With the following code, I just get ValueError: [{'message': 'Missing query'}]

from sqlalchemy import create_engine
from sqlalchemy import text, inspect

from sqlalchemy.dialects import registry


# We use GraphQL SWAPI (The Star Wars API) c/o Netlify:
engine = create_engine('graphql://swapi-graphql.netlify.app/.netlify/functions/index')

with engine.connect() as connection:
    insp = inspect(connection)
    insp.get_table_names()

When trying to use your package with Apache Superset, it errors when trying to retrieve the list of tables. I used the example URL (graphql://swapi-graphql.netlify.app/.netlify/functions/index) as well as my own. Both give the same result.

Is there anything that I'm doing wrong or has the package become incompatible with newer sqlalchemy versions? I'm using sqlalchemy = "^2.0.36"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions