You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/03/22 17:09:04 UTC

[GitHub] [arrow] nevi-me opened a new pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

nevi-me opened a new pull request #9771:
URL: https://github.com/apache/arrow/pull/9771


   Minor change to compute the levels for FSB arrays and write them out. Added a roundtrip test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] jorgecarleitao commented on a change in pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
jorgecarleitao commented on a change in pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#discussion_r599033492



##########
File path: rust/parquet/src/arrow/arrow_writer.rs
##########
@@ -156,6 +156,16 @@ fn write_leaves(
             row_group_writer.close_column(col_writer)?;
             Ok(())
         }
+        ArrowDataType::FixedSizeBinary(_) => {
+            let mut col_writer = get_col_writer(&mut row_group_writer)?;
+            write_leaf(
+                &mut col_writer,
+                array,
+                levels.pop().expect("Levels exhausted"),
+            )?;
+            row_group_writer.close_column(col_writer)?;
+            Ok(())
+        }

Review comment:
       I can't spot the difference between this and all cases above. Is there any?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] nevi-me commented on a change in pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
nevi-me commented on a change in pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#discussion_r600905835



##########
File path: rust/parquet/src/arrow/arrow_writer.rs
##########
@@ -156,6 +156,16 @@ fn write_leaves(
             row_group_writer.close_column(col_writer)?;
             Ok(())
         }
+        ArrowDataType::FixedSizeBinary(_) => {
+            let mut col_writer = get_col_writer(&mut row_group_writer)?;
+            write_leaf(
+                &mut col_writer,
+                array,
+                levels.pop().expect("Levels exhausted"),
+            )?;
+            row_group_writer.close_column(col_writer)?;
+            Ok(())
+        }

Review comment:
       I've fixed this




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] nevi-me commented on a change in pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
nevi-me commented on a change in pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#discussion_r599053605



##########
File path: rust/parquet/src/arrow/arrow_writer.rs
##########
@@ -156,6 +156,16 @@ fn write_leaves(
             row_group_writer.close_column(col_writer)?;
             Ok(())
         }
+        ArrowDataType::FixedSizeBinary(_) => {
+            let mut col_writer = get_col_writer(&mut row_group_writer)?;
+            write_leaf(
+                &mut col_writer,
+                array,
+                levels.pop().expect("Levels exhausted"),
+            )?;
+            row_group_writer.close_column(col_writer)?;
+            Ok(())
+        }

Review comment:
       lol, there isn't. Someone (won't name them) copied this chunk separately, thinking that it'll be different. Then they forgot to merge it when they realised that there was no difference.
   
   I'll fix it shortly




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] alamb commented on a change in pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
alamb commented on a change in pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#discussion_r599084717



##########
File path: rust/parquet/src/arrow/arrow_writer.rs
##########
@@ -189,11 +199,12 @@ fn write_leaves(
         ArrowDataType::Float16 => Err(ParquetError::ArrowError(
             "Float16 arrays not supported".to_string(),
         )),
-        ArrowDataType::FixedSizeList(_, _)
-        | ArrowDataType::FixedSizeBinary(_)
-        | ArrowDataType::Union(_) => Err(ParquetError::NYI(
-            "Attempting to write an Arrow type that is not yet implemented".to_string(),
-        )),
+        ArrowDataType::FixedSizeList(_, _) | ArrowDataType::Union(_) => {
+            Err(ParquetError::NYI(
+                "Attempting to write an Arrow type that is not yet implemented"
+                    .to_string(),

Review comment:
       ```suggestion
                   format!("Attempting to write an Arrow type {?} to parquet that is not yet implemented", array.data_type())
   ```
   
   ( I realize the error message is not changed by this PR I just saw it when looking)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] nevi-me closed pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
nevi-me closed pull request #9771:
URL: https://github.com/apache/arrow/pull/9771


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] codecov-io commented on pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
codecov-io commented on pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#issuecomment-808858837


   # [Codecov](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=h1) Report
   > Merging [#9771](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=desc) (4ecc2d7) into [master](https://codecov.io/gh/apache/arrow/commit/29feea07fea118ad6ffc4d2615a5798412fe2f19?el=desc) (29feea0) will **decrease** coverage by `0.17%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/arrow/pull/9771/graphs/tree.svg?width=650&height=150&src=pr&token=LpTCFbqVT1)](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #9771      +/-   ##
   ==========================================
   - Coverage   82.59%   82.41%   -0.18%     
   ==========================================
     Files         248      252       +4     
     Lines       58294    58977     +683     
   ==========================================
   + Hits        48149    48608     +459     
   - Misses      10145    10369     +224     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [rust/arrow/src/array/transform/fixed\_binary.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL2ZpeGVkX2JpbmFyeS5ycw==) | `0.00% <0.00%> (-78.95%)` | :arrow_down: |
   | [rust/arrow/src/array/transform/null.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL251bGwucnM=) | `0.00% <0.00%> (-66.67%)` | :arrow_down: |
   | [rust/arrow/src/array/transform/structure.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL3N0cnVjdHVyZS5ycw==) | `44.44% <0.00%> (-38.89%)` | :arrow_down: |
   | [rust/arrow/src/array/transform/primitive.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL3ByaW1pdGl2ZS5ycw==) | `71.42% <0.00%> (-28.58%)` | :arrow_down: |
   | [rust/arrow/src/array/transform/mod.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL21vZC5ycw==) | `70.23% <0.00%> (-22.96%)` | :arrow_down: |
   | [rust/arrow/src/array/transform/variable\_size.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvdHJhbnNmb3JtL3ZhcmlhYmxlX3NpemUucnM=) | `87.87% <0.00%> (-12.13%)` | :arrow_down: |
   | [rust/arrow/src/array/array\_binary.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYXJyYXkvYXJyYXlfYmluYXJ5LnJz) | `79.84% <0.00%> (-11.80%)` | :arrow_down: |
   | [rust/arrow/src/buffer/mutable.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9hcnJvdy9zcmMvYnVmZmVyL211dGFibGUucnM=) | `83.89% <0.00%> (-6.87%)` | :arrow_down: |
   | [rust/parquet/src/schema/parser.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9wYXJxdWV0L3NyYy9zY2hlbWEvcGFyc2VyLnJz) | `86.27% <0.00%> (-3.93%)` | :arrow_down: |
   | [rust/parquet/src/arrow/schema.rs](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree#diff-cnVzdC9wYXJxdWV0L3NyYy9hcnJvdy9zY2hlbWEucnM=) | `89.08% <0.00%> (-3.29%)` | :arrow_down: |
   | ... and [62 more](https://codecov.io/gh/apache/arrow/pull/9771/diff?src=pr&el=tree-more) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=footer). Last update [017a93d...4ecc2d7](https://codecov.io/gh/apache/arrow/pull/9771?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow] github-actions[bot] commented on pull request #9771: ARROW-12043: [Rust] [Parquet] Write FSB arrays

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #9771:
URL: https://github.com/apache/arrow/pull/9771#issuecomment-804363911


   https://issues.apache.org/jira/browse/ARROW-12043


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org