Skip to content

Commit

Permalink
feat(api!) switch to use compliant nested types by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Apr 14, 2023
1 parent 2ba6628 commit 4d0b91d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cpp/src/parquet/arrow/arrow_schema_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ TEST_F(TestConvertArrowSchema, ParquetLists) {
// }
// }
{
auto element = PrimitiveNode::Make("string", Repetition::OPTIONAL,
auto element = PrimitiveNode::Make("element", Repetition::OPTIONAL,
ParquetType::BYTE_ARRAY, ConvertedType::UTF8);
auto list = GroupNode::Make("list", Repetition::REPEATED, {element});
parquet_fields.push_back(
Expand All @@ -1005,7 +1005,7 @@ TEST_F(TestConvertArrowSchema, ParquetLists) {
// }
// }
{
auto element = PrimitiveNode::Make("string", Repetition::REQUIRED,
auto element = PrimitiveNode::Make("element", Repetition::REQUIRED,
ParquetType::BYTE_ARRAY, ConvertedType::UTF8);
auto list = GroupNode::Make("list", Repetition::REPEATED, {element});
parquet_fields.push_back(
Expand Down Expand Up @@ -1086,7 +1086,7 @@ TEST_F(TestConvertArrowSchema, ParquetOtherLists) {
// }
// }
{
auto element = PrimitiveNode::Make("string", Repetition::OPTIONAL,
auto element = PrimitiveNode::Make("element", Repetition::OPTIONAL,
ParquetType::BYTE_ARRAY, ConvertedType::UTF8);
auto list = GroupNode::Make("list", Repetition::REPEATED, {element});
parquet_fields.push_back(
Expand All @@ -1102,7 +1102,7 @@ TEST_F(TestConvertArrowSchema, ParquetOtherLists) {
// }
// }
{
auto element = PrimitiveNode::Make("string", Repetition::OPTIONAL,
auto element = PrimitiveNode::Make("element", Repetition::OPTIONAL,
ParquetType::BYTE_ARRAY, ConvertedType::UTF8);
auto list = GroupNode::Make("list", Repetition::REPEATED, {element});
parquet_fields.push_back(
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/parquet/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,7 @@ class PARQUET_EXPORT ArrowWriterProperties {
coerce_timestamps_unit_(::arrow::TimeUnit::SECOND),
truncated_timestamps_allowed_(false),
store_schema_(false),
// TODO: At some point we should flip this.
compliant_nested_types_(false),
compliant_nested_types_(true),
engine_version_(V2),
use_threads_(kArrowDefaultUseThreads),
executor_(NULLPTR) {}
Expand Down

0 comments on commit 4d0b91d

Please sign in to comment.