Skip to content

Conversation

@crepererum
Copy link
Contributor

This is backwards-compatible since we change the argument from Vec<u8>
to impl Into<Arc<Vec<u8>>> and the following implementations exists in
std:

  • impl<T, U> Into<U> for T where U: From<T> (reverse direction)
  • impl<T> From<T> for Arc<T> (create Arc from any type)

Furthermore Arc<Vec<u8>> can be passed directly now because the following
implementations exists:

  • impl<T> From<T> for T (identity)

Closes #368.

This is backwards-compatible since we change the argument from `Vec<u8>`
to `impl Into<Arc<Vec<u8>>>` and the following implementations exists in
std:

- `impl<T, U> Into<U> for T where U: From<T>` (reverse direction)
- `impl<T> From<T> for Arc<T>` (create `Arc` from any type)

Furthermore `Arc<Vec<u8>>` can be passed directly now because the following
implementations exists:

- `impl<T> From<T> for T` (identity)

Closes apache#368.
@codecov-commenter
Copy link

Codecov Report

Merging #369 (9aaaee7) into master (94a82cd) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #369      +/-   ##
==========================================
- Coverage   82.60%   82.60%   -0.01%     
==========================================
  Files         162      162              
  Lines       44175    44175              
==========================================
- Hits        36491    36490       -1     
- Misses       7684     7685       +1     
Impacted Files Coverage Δ
parquet/src/util/cursor.rs 83.18% <100.00%> (ø)
parquet/src/encodings/encoding.rs 94.85% <0.00%> (-0.20%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94a82cd...9aaaee7. Read the comment docs.

Copy link
Contributor

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

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

LGTM

@jorgecarleitao jorgecarleitao merged commit b802895 into apache:master May 26, 2021
alamb pushed a commit that referenced this pull request Jun 4, 2021
This is backwards-compatible since we change the argument from `Vec<u8>`
to `impl Into<Arc<Vec<u8>>>` and the following implementations exists in
std:

- `impl<T, U> Into<U> for T where U: From<T>` (reverse direction)
- `impl<T> From<T> for Arc<T>` (create `Arc` from any type)

Furthermore `Arc<Vec<u8>>` can be passed directly now because the following
implementations exists:

- `impl<T> From<T> for T` (identity)

Closes #368.
alamb added a commit that referenced this pull request Jun 5, 2021
… (#401)

This is backwards-compatible since we change the argument from `Vec<u8>`
to `impl Into<Arc<Vec<u8>>>` and the following implementations exists in
std:

- `impl<T, U> Into<U> for T where U: From<T>` (reverse direction)
- `impl<T> From<T> for Arc<T>` (create `Arc` from any type)

Furthermore `Arc<Vec<u8>>` can be passed directly now because the following
implementations exists:

- `impl<T> From<T> for T` (identity)

Closes #368.

Co-authored-by: Marco Neumann <marco@crepererum.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide Arc-based constructor for parquet::util::cursor::SliceableCursor

5 participants