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: chained casts are incorrectly merged #10262

Closed
1 task done
NickCrews opened this issue Oct 1, 2024 · 0 comments · Fixed by #10351
Closed
1 task done

bug: chained casts are incorrectly merged #10262

NickCrews opened this issue Oct 1, 2024 · 0 comments · Fixed by #10351
Assignees
Labels
bug Incorrect behavior inside of ibis datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) duckdb The DuckDB backend
Milestone

Comments

@NickCrews
Copy link
Contributor

What happened?

import ibis

ibis.memtable({"x": [1.2, 3.4]}).x.round().cast(int).cast(str).execute().to_list()
# gives
# ['1.0', '3.0']
# I expect
# ['1', '3']

# not a problem with literals?
ibis.literal(1.2).round().cast(int).cast(str).execute()
# '1'

What version of ibis are you using?

main

What backend(s) are you using, if any?

duckdb

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@NickCrews NickCrews added the bug Incorrect behavior inside of ibis label Oct 1, 2024
@cpcloud cpcloud self-assigned this Oct 22, 2024
@cpcloud cpcloud added datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) duckdb The DuckDB backend labels Oct 22, 2024
@github-project-automation github-project-automation bot moved this from backlog to done in Ibis planning and roadmap Oct 27, 2024
@github-actions github-actions bot added this to the 10.0 milestone Oct 27, 2024
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 datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) duckdb The DuckDB backend
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

2 participants