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

Running the basic_operations examples fails with Error: Transaction { source: WriterFeaturesRequired(TimestampWithoutTimezone) } #2552

Closed
imor opened this issue May 29, 2024 · 1 comment · Fixed by #2559
Labels
bug Something isn't working

Comments

@imor
Copy link
Contributor

imor commented May 29, 2024

Environment

Delta-rs version: main branch

Binding: Rust

Environment:

  • Cloud provider:
  • OS: macOS
  • Other: local

Bug

What happened:

Running basic_operations examples fails with Error: Transaction { source: WriterFeaturesRequired(TimestampWithoutTimezone) }

What you expected to happen:

Example runs successfully

How to reproduce it:

From the delta-rs/crates/deltalake folder run cargo run --features="datafusion" --example basic_operations

More details:
I have tracked the error down to these lines:

return Err(TransactionError::WriterFeaturesRequired(
WriterFeatures::TimestampWithoutTimezone,
));
But I'm not sure how to fix this. If I comment out these lines, the example does work.

@imor imor added the bug Something isn't working label May 29, 2024
jhoekx added a commit to jhoekx/delta-rs that referenced this issue Jun 1, 2024
@jhoekx
Copy link
Contributor

jhoekx commented Jun 1, 2024

The example was creating an Arrow array with timestamps without time zone. The delta data type was Timestamp, which is defined as having a UTC timezone, but it should be TimestampNtz to correspond to the data.

rtyler pushed a commit that referenced this issue Jun 1, 2024
There is no "arrow" feature anymore.

This closes #2552.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants