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

Support for type coercion for a (Timestamp, Utf8) pair #4311

Closed
Tracked by #3148
andre-cc-natzka opened this issue Nov 21, 2022 · 0 comments · Fixed by #4312
Closed
Tracked by #3148

Support for type coercion for a (Timestamp, Utf8) pair #4311

andre-cc-natzka opened this issue Nov 21, 2022 · 0 comments · Fixed by #4312
Labels
enhancement New feature or request

Comments

@andre-cc-natzka
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
At the moment DataFusion supports type coercion for (DataType::Time, DataType::Utf8) and (DataType::Date, DataType::Utf8) pairs, but does not account for type coercion for (DataType::Timestamp, DataType::Utf8).

Describe the solution you'd like
We need to add support for type coercion for a (DataType::Timestamp(_, _), DataType::Utf8) pair (all time units considered) into a DataType::Timestamp(TimeUnit::Nanosecond, _). The reason why the output type has to consider nanosecond accuracy is the fact that this is the only time unit supported by Arrow.

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant