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 duration in ffi #1689

Merged
merged 1 commit into from
May 12, 2022
Merged

support duration in ffi #1689

merged 1 commit into from
May 12, 2022

Conversation

ryan-jacobs1
Copy link
Contributor

Which issue does this PR close?

Closes #1688.

Rationale for this change

The Duration type is implemented in Rust but not in FFI. As the type is present in Rust, it should also be present in FFI.

What changes are included in this PR?

The Duration type is now supported in FFI.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the arrow Changes to the arrow crate label May 11, 2022
Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Thanks @ryan-jacobs1. We also need to update test_sql.py by removing pa.duration("s") there.

@ryan-jacobs1
Copy link
Contributor Author

@viirya fixed.

Comment on lines +58 to +61
pa.duration("s"),
pa.duration("ms"),
pa.duration("us"),
pa.duration("ns"),
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@viirya viirya merged commit 3d91302 into apache:master May 12, 2022
@viirya
Copy link
Member

viirya commented May 12, 2022

Merged, thanks @ryan-jacobs1

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
Development

Successfully merging this pull request may close these issues.

Add support for DataType::Duration in ffi interface
2 participants