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: Ensure that we only cast if timezone is not None #1147

Closed
wants to merge 2 commits into from

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Aug 28, 2017

No description provided.

@cpcloud cpcloud self-assigned this Aug 28, 2017
@cpcloud cpcloud added bug Incorrect behavior inside of ibis expressions Issues or PRs related to the expression API labels Aug 28, 2017
@cpcloud cpcloud added this to the 0.11.3 milestone Aug 28, 2017
@cpcloud
Copy link
Member Author

cpcloud commented Aug 28, 2017

Merging on green.

ibis/expr/api.py Outdated
@@ -1884,7 +1884,9 @@ def between_time(arg, lower, upper, timezone=None):
"""

if isinstance(arg.op(), _ops.Time):
arg = arg.op().args[0].cast(dt.Timestamp(timezone=timezone))
arg = arg.op().args[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe a commento about why this is needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@cpcloud
Copy link
Member Author

cpcloud commented Aug 28, 2017

@cpcloud cpcloud closed this in 8173e44 Aug 28, 2017
@cpcloud cpcloud deleted the fix-tz branch August 28, 2017 21:19
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 expressions Issues or PRs related to the expression API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants