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 2022/01/20 11:50:35 UTC

[GitHub] [arrow] pitrou opened a new pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

pitrou opened a new pull request #12204:
URL: https://github.com/apache/arrow/pull/12204


   There may be an incomplete/broken copy of the Abseil library lying around
   (for example because of a race condition while installing it as a bundled library).
   
   Since absl is only used by Flatbuffers to provide a string_view facility,
   use our own vendored string_view instead.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017757230


   Crossbow C++ builds: https://github.com/ursacomputing/crossbow/branches/all?page=1&query=build-592


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou closed pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou closed pull request #12204:
URL: https://github.com/apache/arrow/pull/12204


   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017559375


   It's a bit convoluted and awkward, as Abseil is only an optional indirect dependency of the GCSFS implementation. Furthermore, since Flatbuffers is vendored, I don't think it has an existence in the dependency graph at all currently (it's basically always there).
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] coryan commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
coryan commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017573832


   > It's a bit convoluted and awkward, as Abseil is only an optional indirect dependency of the GCSFS implementation. Furthermore, since Flatbuffers is vendored, I don't think it has an existence in the dependency graph at all currently (it's basically always there).
   
   I see.
   
   Consider that (by default) `absl::string_view` is just an alias for `std::string_view` when compiling with C++ >= 17, and it is a template class when compiling with C++ <= 14 (something I do not happen to like but it is a thing: abseil/abseil-cpp#696).  I am not sure if Flatbuffers depends on that (my guess would be no), hopefully not.  If it did, you may run intro trouble as it tries to use `std::string_view` in C++17 but the Arrow version of `string_view` does not magically convert to `std::string_view`.
   
   You may want to just disable the automatic detection of Abseil's string view.  Just my $0.02, I think your change should work as-is too.
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] lidavidm commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
lidavidm commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017595848


   If it just enables APIs we don't use, I would lean towards avoiding the mess in the first place and just removing the detection as well. But as-is things are OK here too.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] ursabot commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
ursabot commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017865670


   Benchmark runs are scheduled for baseline = a3efe72f99b1b9f23b1d11afc648f4306d32e330 and contender = 22dc537e581b385b53ce579a03786a2db0bd4487. 22dc537e581b385b53ce579a03786a2db0bd4487 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Scheduled] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/dd608f6a1bda4922bef705ab08bbda9a...ba3fe320940c40a59a548db154c9d7b2/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/f58de9bb70fe4030a1a0ef40544d0969...a2767a1c935b49b5a72428010165e7c2/)
   [Scheduled] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/202c60eaf7714fb989ca8db120a552ed...ea371bbc036740dca067364b1e2152bb/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] coryan commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
coryan commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017523259


   > Not sure whether you have an opinion on this?
   
   To me, it seems odd to patch the code to fix a race condition during the build.  Seems like the "Right Thing"[tm] would be to fix the dependency graph to make flatbuffers depend on Abseil?  Is that very hard for some reason?
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] ursabot edited a comment on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017865670


   Benchmark runs are scheduled for baseline = a3efe72f99b1b9f23b1d11afc648f4306d32e330 and contender = 22dc537e581b385b53ce579a03786a2db0bd4487. 22dc537e581b385b53ce579a03786a2db0bd4487 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/dd608f6a1bda4922bef705ab08bbda9a...ba3fe320940c40a59a548db154c9d7b2/)
   [Failed :arrow_down:0.91% :arrow_up:0.0%] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/f58de9bb70fe4030a1a0ef40544d0969...a2767a1c935b49b5a72428010165e7c2/)
   [Finished :arrow_down:0.3% :arrow_up:0.04%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/202c60eaf7714fb989ca8db120a552ed...ea371bbc036740dca067364b1e2152bb/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017419378


   @coryan Not sure whether you have an opinion on 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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] kszucs commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
kszucs commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017712365


   @pitrou shall we include this in 7.0 (in the case I need to cut another RC)?


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017743486


   @kszucs There's no real need to.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] github-actions[bot] commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

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






-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] pitrou commented on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017591957


   Flatbuffers' use of string_view is merely to enable two APIs (that we don't currently use AFAICT, so we may indeed as well disable it). It doesn't store any `std::string_view` under the hood, so that should be fine.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] ursabot edited a comment on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017865670


   Benchmark runs are scheduled for baseline = a3efe72f99b1b9f23b1d11afc648f4306d32e330 and contender = 22dc537e581b385b53ce579a03786a2db0bd4487. 22dc537e581b385b53ce579a03786a2db0bd4487 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/dd608f6a1bda4922bef705ab08bbda9a...ba3fe320940c40a59a548db154c9d7b2/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/f58de9bb70fe4030a1a0ef40544d0969...a2767a1c935b49b5a72428010165e7c2/)
   [Scheduled] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/202c60eaf7714fb989ca8db120a552ed...ea371bbc036740dca067364b1e2152bb/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow] ursabot edited a comment on pull request #12204: ARROW-15388: [C++] Avoid including absl from flatbuffers

Posted by GitBox <gi...@apache.org>.
ursabot edited a comment on pull request #12204:
URL: https://github.com/apache/arrow/pull/12204#issuecomment-1017865670


   Benchmark runs are scheduled for baseline = a3efe72f99b1b9f23b1d11afc648f4306d32e330 and contender = 22dc537e581b385b53ce579a03786a2db0bd4487. 22dc537e581b385b53ce579a03786a2db0bd4487 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Finished :arrow_down:0.0% :arrow_up:0.0%] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/dd608f6a1bda4922bef705ab08bbda9a...ba3fe320940c40a59a548db154c9d7b2/)
   [Scheduled] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/f58de9bb70fe4030a1a0ef40544d0969...a2767a1c935b49b5a72428010165e7c2/)
   [Finished :arrow_down:0.3% :arrow_up:0.04%] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/202c60eaf7714fb989ca8db120a552ed...ea371bbc036740dca067364b1e2152bb/)
   Supported benchmarks:
   ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
   ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
   ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
   


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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