Skip to content
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

Better error message for sf.Frame.from_sql #854

Open
chaburkland opened this issue Oct 23, 2023 · 0 comments
Open

Better error message for sf.Frame.from_sql #854

chaburkland opened this issue Oct 23, 2023 · 0 comments

Comments

@chaburkland
Copy link
Collaborator

Description

It's not uncommon for queries to successfully finish, but return None. As such, static-frame will raise this error:

TypeError("int() argument must be a string, a bytes-like object or a number, not 'NoneType'")

Example

I think a better error message would be suited here. Something like: RuntimeError("Query finished without returning any results")

Platform

<Series: platform>
<Index>
platform           Linux-5.4.0-165-generic-x86_64-with-glibc2.29
sys.version        3.8.12 (default, Aug 30 2023, 21:17:56) [GCC 9.4.0]
static-frame       1.6.4
numpy              1.24.3
pandas             1.5.3
xlsxwriter         3.1.0
openpyxl           3.0.9
xarray             <ModuleNotFoundError>
tables             3.8.0
pyarrow            0.17.1
msgpack            (1, 0, 0)
msgpack_numpy      None
<<U13>             <object>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant