Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Feb 10, 2023
1 parent 324ca2c commit c36bd86
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
21 changes: 0 additions & 21 deletions src/io/parquet/write/nested/def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,6 @@ mod tests {
#[test]
fn nested_list_struct_list_nullable() {
/*
[List(ListNested { is_optional: true, offsets: [0, 2, 2, 5, 8, 8, 11, 11, 12], validity: Some([0b10111101]) }), Struct(Some([0b11110111, 0b____1111]), true, 12), List(ListNested { is_optional: true, offsets: [0, 1, 2, 3, 3, 4, 4, 4, 4, 5, 6, 8, 8], validity: Some([0b00010111, 0b____1111]) }), Primitive(Some([0b11011111]), true, 8)]
[
[{"a": ["a"]}, {"a": ["b"]}],
None,
Expand Down Expand Up @@ -577,7 +575,6 @@ mod tests {
offsets: &[0, 2, 2, 5, 8, 8, 11, 11, 12],
validity: Some(&a),
}),
// 0b11110111, 0b____1111
Nested::Struct(Some(&b), true, 12),
Nested::List(ListNested {
is_optional: true,
Expand All @@ -586,24 +583,6 @@ mod tests {
}),
Nested::Primitive(Some(&d), true, 8),
];
/*
0 6
1 6
0 0
0 6
1 2
1 6
0 3
1 3
1 3
0 1
0 6
1 5
1 6
2 6
0 0
0 4
*/
let expected = vec![6, 6, 0, 6, 2, 6, 3, 3, 3, 1, 6, 5, 6, 6, 0, 4];

test(nested, expected)
Expand Down
42 changes: 0 additions & 42 deletions src/io/parquet/write/nested/rep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,30 +176,6 @@ mod tests {
}),
Nested::Primitive(None, false, 12),
];
// [2, 0, 3, 3, 0, 3, 0, 1]
// 1)
// a) 2 => remaining = [2], level = 1, total = 1
// b) return 0
// c) remaining = [1], total = 0
// 2)
// a)
// b) return 1
// c) remaining = [0], => 1

//
/*
[
[False, True],
[],
[True, True, False],
[True, False, True],
[],
[False, False, False],
[],
[True],
]
*/

let expected = vec![0u32, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0];

test(nested, expected)
Expand Down Expand Up @@ -369,24 +345,6 @@ mod tests {

#[test]
fn list_struct_list_3() {
/*
[
[{"a": []}],
[],
]
// reps: [0, 0]
// lengths: [[1, 0], [0]]
// 1)
// a1) 1 => remaining = [1, 0], level = 1, total = 1
// a2) 0 => remaining = [1, 0], level = 1, total = 1
// b) return 0
// c) remaining = [1, 0], level = 1, total = 0
// 2)
// a) 0 => remaining = [1, 0], level = 1, total = 0
// b) return 1
// c) remaining = [0], => 1
*/
let nested = vec![
Nested::List(ListNested {
is_optional: true,
Expand Down

0 comments on commit c36bd86

Please sign in to comment.