Repository navigation
GH-36867: [C++] Add a struct_ and schema overload taking a vector of (name, type) pairs - #36915
Merged
pitrou merged 6 commits intoAug 9, 2023
Conversation
|
|
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
from
July 27, 2023 16:40
6bf4506 to
f396384
Compare
Member
Would you mind fix lint first? |
mapleFU
reviewed
Jul 28, 2023
Contributor
Author
|
ok, will take a look |
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
2 times, most recently
from
July 31, 2023 11:25
2e34a9a to
e8f73c4
Compare
bkietz
requested changes
Aug 2, 2023
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
from
August 3, 2023 09:56
e8f73c4 to
c884f85
Compare
bkietz
requested changes
Aug 3, 2023
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
from
August 4, 2023 03:15
c884f85 to
6736aa7
Compare
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
from
August 4, 2023 04:23
6736aa7 to
87ea858
Compare
pitrou
requested changes
Aug 8, 2023
pitrou
left a comment
Member
There was a problem hiding this comment.
Thanks a lot @jsjtxietian ! A couple more comments, mostly on the documentation side.
a vector of (name, type) pairs
jsjtxietian
force-pushed
the
gh-36867-add-struct_-overload-taking-a-vector-of-name-type-pairs
branch
from
August 9, 2023 09:44
87ea858 to
107b5e7
Compare
Contributor
Author
|
Thank you very much for all your help! |
pitrou
approved these changes
Aug 9, 2023
Member
|
CI failures are unrelated, will merge. |
|
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit d3ccc83. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this pull request
Nov 13, 2023
…or of (name, type) pairs (apache#36915) ### Rationale for this change Mostly for convenience. It would be nice to be able to write: ```struct_({{"a", int8()}, {"b", utf8()}});``` instead of: ```struct_({field("a", int8()), field("b", utf8())});``` Same with the schema factory. ### What changes are included in this PR? Add a struct_ overload and two schema overload taking a vector of (name, type) pairs to construct a vector of fields. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. Add three ARROW_EXPORT functions. * Closes: apache#36867 Authored-by: jsjtxietian <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Mostly for convenience. It would be nice to be able to write:
struct_({{"a", int8()}, {"b", utf8()}});instead of:
struct_({field("a", int8()), field("b", utf8())});Same with the schema factory.
What changes are included in this PR?
Add a struct_ overload and two schema overload taking a vector of (name, type) pairs to construct a vector of fields.
Are these changes tested?
Yes.
Are there any user-facing changes?
Yes. Add three ARROW_EXPORT functions.
struct_overload taking a vector of (name, type) pairs #36867