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

Convert to local epoch when casting to timestamp without timezone #5831

Closed
wants to merge 1 commit into from

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Jun 1, 2024

Draft as I am not sure about this change

Which issue does this PR close?

Closes #5827

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 1, 2024
assert!(result.is_null(2));

let array = StringArray::from(vec!["2010-01-01T00:00:00.123456+08:00"]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We now have a difference in behaviour here, which I think is kind of unfortunate - #4201 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

To keep the same behavior, would we have to change the string parsing logic too?

@devanbenz
Copy link

Hi @tustvold is this PR relevant for: apache/datafusion#12218 ? If so I would be happy to take over this to get it across the line. cc @alamb & @findepi

@alamb
Copy link
Contributor

alamb commented Sep 7, 2024

Hi @tustvold is this PR relevant for: apache/datafusion#12218 ? If so I would be happy to take over this to get it across the line. cc @alamb & @findepi

Hi @devanbenz -- thanks for pinging. I think we need to come to some consensus / conclusion that this is the way we want to proceed. I believe there are still some unresolved questions on #5827 that need to be addressed (specifically I believe we also need to agree to update the textual parsing).

Perhaps you can give #5827 a read and post a proposal there to make sure everyone is agreed

@tustvold tustvold closed this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
3 participants