Skip to content

SA20: Resolve all deprecation warnings using SQLALCHEMY_WARN_20=1 #111

@amotl

Description

@amotl

About

When running the test suite, it triggers a few deprecation warnings:

<stdin>:1: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 1.4) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
<stdin>:1: RemovedIn20Warning: The ``bind`` argument to declarative_base is deprecated and will be removed in SQLAlchemy 2.0. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)

I was following the steps described here, but on the following connection.execute I get a crate.client.exceptions.ProgrammingError: RelationUnknown[Relation 'locations' unknown]. Is there a step missing to run the table creation? And how does it later return a row count of 13, where are these rows coming from?

References

Originally posted by @hammerhead in crate/crate-python#464 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions