Skip to content

ARROW-6558: [C++] Refactor Iterator to type erased handle#5391

Closed
bkietz wants to merge 6 commits into
apache:masterfrom
bkietz:6558-Refactor-Iterator-to-a-ty
Closed

ARROW-6558: [C++] Refactor Iterator to type erased handle#5391
bkietz wants to merge 6 commits into
apache:masterfrom
bkietz:6558-Refactor-Iterator-to-a-ty

Conversation

@bkietz

@bkietz bkietz commented Sep 16, 2019

Copy link
Copy Markdown
Member

To resolve linkage issues with MSVC and the current abstract base class Iterator

@pitrou

@pitrou

pitrou commented Sep 16, 2019

Copy link
Copy Markdown
Member

@kszucs Do you think the Ursabot build failures here are related?

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for doing this. Here's a bunch of comments.

Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you comment a bit on the implementation? So that the person reading this for the first time doesn't scratch their head.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, sorry, I wasn't clear. I meant comment on the general design (why we're using type erasure) rather than details of member variables - these can stay of course :-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It can go in another PR though :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll add comments about this in #5221

Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/util/iterator.h Outdated
Comment thread cpp/src/arrow/table.h Outdated
Comment thread cpp/src/arrow/dataset/file_parquet_test.cc Outdated
@bkietz bkietz force-pushed the 6558-Refactor-Iterator-to-a-ty branch from 42b4883 to f73f4d5 Compare September 16, 2019 16:58
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #5391 into master will increase coverage by 0.57%.
The diff coverage is 98.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5391      +/-   ##
==========================================
+ Coverage   88.58%   89.16%   +0.57%     
==========================================
  Files         950      758     -192     
  Lines      126207   110762   -15445     
  Branches     1495        0    -1495     
==========================================
- Hits       111803    98756   -13047     
+ Misses      14039    12006    -2033     
+ Partials      365        0     -365
Impacted Files Coverage Δ
cpp/src/arrow/dataset/file_base.h 87.5% <ø> (ø) ⬆️
cpp/src/arrow/dataset/dataset.cc 100% <ø> (ø) ⬆️
cpp/src/parquet/arrow/reader.h 65% <ø> (ø) ⬆️
cpp/src/arrow/table.h 100% <ø> (ø) ⬆️
cpp/src/arrow/dataset/scanner.h 100% <ø> (ø) ⬆️
cpp/src/parquet/arrow/reader.cc 83.5% <ø> (+2.7%) ⬆️
cpp/src/arrow/dataset/dataset_internal.h 100% <ø> (ø) ⬆️
cpp/src/arrow/dataset/file_parquet.h 87.5% <ø> (ø) ⬆️
cpp/src/arrow/record_batch.cc 94.07% <100%> (ø) ⬆️
cpp/src/arrow/dataset/file_parquet.cc 100% <100%> (ø) ⬆️
... and 207 more

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 879cf3c...903ce29. Read the comment docs.

@kszucs

kszucs commented Sep 17, 2019

Copy link
Copy Markdown
Member

I have not seen the failures, everything seem to pass now though.

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@bkietz bkietz closed this in 48df574 Sep 17, 2019
@bkietz bkietz deleted the 6558-Refactor-Iterator-to-a-ty branch February 25, 2021 16:37
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.

4 participants