-
Notifications
You must be signed in to change notification settings - Fork 170
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
Documentation of type_code
#348
Comments
I did a bit of investigation by myself, and discovered a few things:
I think the best solution is to change I'm willing to open a PR for this, but it might be a somewhat wide-reaching change. ASIDE: some types, and their
|
Nice find @abhiagarwal01, this makes sense to fix. It'll be a breaking change but it'll make us follow the PEP correctly and allow third party tools to work better which make use of this information. We'd appreciate if you want to submit a PR for this. Just beware that it probably won't be in the upcoming release since we like to include breaking changes in separate releases. |
@hashhar Thank you! I'll likely be refactoring any type-specific logic to a separate |
Is it possible to do this in two steps - separate PRs or different commits in same PR? |
I think the idea of a |
That sounds ideal. Thanks. |
Describe the feature
I'm working with adding some plumbing between our backend system and Trino, and we're trying to derive more type information to speed up Python. Trino gives access to column information with the
cursor.description
method, but it gives atype_code
integer. I've been struggling to figure out whattype_code
maps to, and my google-fu has failed me. I'd appreciate any sort of guidance.Describe alternatives you've considered
I've been running queries to try and manually figure out
type_code
, but it hasn't been exhaustive.Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: