SNOW-3243341: optional dependencies in cursor (pyarrow, pandas)#639
SNOW-3243341: optional dependencies in cursor (pyarrow, pandas)#639sfc-gh-asolarski wants to merge 2 commits intomainfrom
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
b00072e to
a2458e8
Compare
a2458e8 to
a722309
Compare
3201d1d to
fa645ee
Compare
fa645ee to
5469b66
Compare
a722309 to
4d0bc36
Compare
4d0bc36 to
b4692bf
Compare
7e3c6db to
075543b
Compare
b4692bf to
ce4fb08
Compare
075543b to
905880c
Compare
ce4fb08 to
1e58685
Compare
| msg = ( | ||
| "Optional dependency: 'pyarrow' is not installed, please see the following link for" | ||
| " install instructions: https://docs.snowflake.com/en/user-guide/python-connector-pandas.html#installation" | ||
| ) | ||
| raise ProgrammingError(msg=msg, errno=ER_NO_PYARROW) |
There was a problem hiding this comment.
Isn't the message produced already in MissingOptionalDependency? If we have MissingPyarrow class it would be good to put all logic related to handling of it there . Especially that both arrow and pandas follow the same logic
There was a problem hiding this comment.
I made this whole logic more generic for now.
Moved the creation of messages
1e58685 to
c91a26d
Compare
99ec8bc to
78f826e
Compare
c91a26d to
7963d70
Compare
78f826e to
7bc43ec
Compare
7963d70 to
2bb35ba
Compare
2bb35ba to
c48200b
Compare
7bc43ec to
883c73a
Compare
| ParamStyle, | ||
| ) | ||
| from ._internal.decorators import pep249 | ||
| from ._internal.options import check_dependency, pandas, pyarrow |
There was a problem hiding this comment.
| from ._internal.options import check_dependency, pandas, pyarrow | |
| from ._internal.extras import check_dependency, pandas, pyarrow |
Given it's completely new module maybe it's worth to consider a naming that is more related to the package "extras"? WDYT?
c48200b to
7ddb233
Compare
883c73a to
451213d
Compare

No description provided.