Skip to content

Conversation

@aksakalli
Copy link
Member

Fixing #165 issue.

@cla-bot
Copy link

cla-bot bot commented Mar 29, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@cla-bot
Copy link

cla-bot bot commented Mar 29, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@ebyhr ebyhr requested a review from hashhar March 29, 2022 13:40
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd have expected that the setup.py would have ensured that pytz gets installed as a dependency?

@aksakalli
Copy link
Member Author

I'd have expected that the setup.py would have ensured that pytz gets installed as a dependency?

I thought the intention of #160 is to depend on pytz only when experimental_python_types=True.

@cla-bot
Copy link

cla-bot bot commented Mar 29, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@aksakalli
Copy link
Member Author

I'd have expected that the setup.py would have ensured that pytz gets installed as a dependency?

I created an alternative PR #167

@aksakalli
Copy link
Member Author

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

I sent the signed CLA.

hashhar
hashhar previously approved these changes Mar 29, 2022
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like the better solution to me.

However you'd still want to add an entry to "extras_require" to setup.py for experimental types support so that pytz gets installed automatically.

The reason why pytz doesn't get installed by default is because install_requires in setup.py only lists requests.

@hashhar hashhar dismissed their stale review March 29, 2022 14:29

mistakenly approved - ci is red

@hashhar
Copy link
Member

hashhar commented Mar 29, 2022

On second thought, the API allows people to switch between normal and python types on the fly. So ideally pytz must be a required dependency otherwise the code may fail at runtime depending on how the cursor is created.

I've implemented that in #168

@hashhar
Copy link
Member

hashhar commented Sep 22, 2022

Alternative solution implemented in #168.

@hashhar hashhar closed this Sep 22, 2022
@aksakalli aksakalli deleted the fix-pytz-dependency branch September 28, 2023 07:04
@aksakalli aksakalli restored the fix-pytz-dependency branch September 28, 2023 07:04
@aksakalli aksakalli deleted the fix-pytz-dependency branch September 28, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants