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

BUG: Binary literals' type is not inferred #2915

Closed
cpcloud opened this issue Aug 25, 2021 · 1 comment · Fixed by #3124
Closed

BUG: Binary literals' type is not inferred #2915

cpcloud opened this issue Aug 25, 2021 · 1 comment · Fixed by #3124
Labels
bug Incorrect behavior inside of ibis

Comments

@cpcloud
Copy link
Member

cpcloud commented Aug 25, 2021

Is there any reason not to infer bytes literals as binary?

>>> import ibis
>>> ibis.literal(b"abc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/cloud/src/ibis/ibis/expr/types.py", line 1288, in literal
    raise TypeError(
TypeError: The datatype of value b'abc' cannot be inferred, try passing it explicitly with the `type` keyword.
@cpcloud cpcloud added the bug Incorrect behavior inside of ibis label Aug 25, 2021
@cpcloud cpcloud self-assigned this Aug 25, 2021
@jreback
Copy link
Contributor

jreback commented Aug 25, 2021

this seems reasonable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants