Skip to content

Type Synonyms not exported to top-level module #181

Description

@jcampbell

The sqlalchemy docs state that:

As with all SQLAlchemy dialects, all UPPERCASE types that are known to be valid with PostgreSQL are importable from the top level dialect, whether they originate from sqlalchemy.types or from the local dialect

However, the redshift dialect currently does not allow importing known valid types. I believe the dialect should explicitly import valid redshift types to the top level so that it conforms to this standard.

Concretely, I believe the following should work:
from sqlalchemy_redshift.dialect import BIGINT (and same for all redshift types)

Sqlalchemy docs ref: https://docs.sqlalchemy.org/en/13/dialects/postgresql.html#postgresql-data-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions