kou commented on pull request #10991:
URL: https://github.com/apache/arrow/pull/10991#issuecomment-933967358


   @jorisvandenbossche It seems that this breaks java-jars daily build: 
https://github.com/ursacomputing/crossbow/runs/3740820445
   
   ```text
   FAILED: 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx.o 
   /usr/local/bin/ccache /opt/rh/devtoolset-9/root/usr/bin/c++ 
-DARROW_DS_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 
-DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 
-DARROW_JEMALLOC -DARROW_JEMALLOC_INCLUDE_DIR="" -DARROW_WITH_LZ4 
-DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS 
-DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DURI_STATIC_BUILD 
-DUTF8PROC_STATIC -Isrc -I/arrow/cpp/src -I/arrow/cpp/src/generated 
-I/arrow/cpp/src/parquet -isystem /arrow/cpp/thirdparty/flatbuffers/include 
-isystem /opt/vcpkg/installed/x64-linux-static-release/include -isystem 
jemalloc_ep-prefix/src -isystem 
/opt/vcpkg/installed/x64-linux-static-release/share/rapidjson/../../include 
-isystem xsimd_ep/src/xsimd_ep-install/include -isystem 
/arrow/cpp/thirdparty/hadoop/include -Wno-noexcept-type -Wno-subobject-linkage  
-fdiagnostics-color=always -O3 -DNDEBUG  -Wall -fno-semantic-interposition 
-msse4.2  -O3 -DNDEBUG -fPIC -std=c++11 -MD -
 MT 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx.o 
-MF 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx.o.d 
-o 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx.o 
-c src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:10:
   /arrow/cpp/src/arrow/dataset/file_orc.cc: In member function ‘virtual 
arrow::Result<bool> arrow::dataset::OrcFileFormat::IsSupported(const 
arrow::dataset::FileSource&) const’:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:136:27: error: call of overloaded 
‘OpenReader(const arrow::dataset::FileSource&)’ is ambiguous
     136 |   return OpenReader(source).ok();
         |                           ^
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:6:
   /arrow/cpp/src/arrow/dataset/file_ipc.cc:46:67: note: candidate: 
‘arrow::Result<std::shared_ptr<arrow::ipc::RecordBatchFileReader> > 
arrow::dataset::OpenReader(const arrow::dataset::FileSource&, const 
arrow::ipc::IpcReadOptions&)’
      46 | static inline Result<std::shared_ptr<ipc::RecordBatchFileReader>> 
OpenReader(
         |                                                                   
^~~~~~~~~~
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:10:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:38:69: note: candidate: 
‘arrow::Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader> > 
arrow::dataset::{anonymous}::OpenReader(const arrow::dataset::FileSource&, 
const std::shared_ptr<arrow::dataset::ScanOptions>&)’
      38 | inline Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader>> 
OpenReader(
         |                                                                     
^~~~~~~~~~
   In file included from /arrow/cpp/src/arrow/array/data.h:27,
                    from /arrow/cpp/src/arrow/datum.h:27,
                    from /arrow/cpp/src/arrow/compute/exec/expression.h:28,
                    from /arrow/cpp/src/arrow/dataset/dataset.h:28,
                    from /arrow/cpp/src/arrow/dataset/dataset.cc:18,
                    from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:3:
   /arrow/cpp/src/arrow/dataset/file_orc.cc: In member function ‘virtual 
arrow::Result<std::shared_ptr<arrow::Schema> > 
arrow::dataset::OrcFileFormat::Inspect(const arrow::dataset::FileSource&) 
const’:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:140:55: error: call of overloaded 
‘OpenReader(const arrow::dataset::FileSource&)’ is ambiguous
     140 |   ARROW_ASSIGN_OR_RAISE(auto reader, OpenReader(source));
         |                                                       ^
   /arrow/cpp/src/arrow/result.h:452:25: note: in definition of macro 
‘ARROW_ASSIGN_OR_RAISE_IMPL’
     452 |   auto&& result_name = (rexpr);                                      
                    \
         |                         ^~~~~
   /arrow/cpp/src/arrow/dataset/file_orc.cc:140:3: note: in expansion of macro 
‘ARROW_ASSIGN_OR_RAISE’
     140 |   ARROW_ASSIGN_OR_RAISE(auto reader, OpenReader(source));
         |   ^~~~~~~~~~~~~~~~~~~~~
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:6:
   /arrow/cpp/src/arrow/dataset/file_ipc.cc:46:67: note: candidate: 
‘arrow::Result<std::shared_ptr<arrow::ipc::RecordBatchFileReader> > 
arrow::dataset::OpenReader(const arrow::dataset::FileSource&, const 
arrow::ipc::IpcReadOptions&)’
      46 | static inline Result<std::shared_ptr<ipc::RecordBatchFileReader>> 
OpenReader(
         |                                                                   
^~~~~~~~~~
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:10:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:38:69: note: candidate: 
‘arrow::Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader> > 
arrow::dataset::{anonymous}::OpenReader(const arrow::dataset::FileSource&, 
const std::shared_ptr<arrow::dataset::ScanOptions>&)’
      38 | inline Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader>> 
OpenReader(
         |                                                                     
^~~~~~~~~~
   In file included from /arrow/cpp/src/arrow/array/data.h:27,
                    from /arrow/cpp/src/arrow/datum.h:27,
                    from /arrow/cpp/src/arrow/compute/exec/expression.h:28,
                    from /arrow/cpp/src/arrow/dataset/dataset.h:28,
                    from /arrow/cpp/src/arrow/dataset/dataset.cc:18,
                    from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:3:
   /arrow/cpp/src/arrow/dataset/file_orc.cc: In lambda function:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:159:69: error: call of overloaded 
‘OpenReader(const arrow::dataset::FileSource&)’ is ambiguous
     159 |         ARROW_ASSIGN_OR_RAISE(auto reader, 
OpenReader(file->source()));
         |                                                                     ^
   /arrow/cpp/src/arrow/result.h:452:25: note: in definition of macro 
‘ARROW_ASSIGN_OR_RAISE_IMPL’
     452 |   auto&& result_name = (rexpr);                                      
                    \
         |                         ^~~~~
   /arrow/cpp/src/arrow/dataset/file_orc.cc:159:9: note: in expansion of macro 
‘ARROW_ASSIGN_OR_RAISE’
     159 |         ARROW_ASSIGN_OR_RAISE(auto reader, 
OpenReader(file->source()));
         |         ^~~~~~~~~~~~~~~~~~~~~
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:6:
   /arrow/cpp/src/arrow/dataset/file_ipc.cc:46:67: note: candidate: 
‘arrow::Result<std::shared_ptr<arrow::ipc::RecordBatchFileReader> > 
arrow::dataset::OpenReader(const arrow::dataset::FileSource&, const 
arrow::ipc::IpcReadOptions&)’
      46 | static inline Result<std::shared_ptr<ipc::RecordBatchFileReader>> 
OpenReader(
         |                                                                   
^~~~~~~~~~
   In file included from 
src/arrow/dataset/CMakeFiles/arrow_dataset_objlib.dir/Unity/unity_0_cxx.cxx:10:
   /arrow/cpp/src/arrow/dataset/file_orc.cc:38:69: note: candidate: 
‘arrow::Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader> > 
arrow::dataset::{anonymous}::OpenReader(const arrow::dataset::FileSource&, 
const std::shared_ptr<arrow::dataset::ScanOptions>&)’
      38 | inline Result<std::unique_ptr<arrow::adapters::orc::ORCFileReader>> 
OpenReader(
         |                                                                     
^~~~~~~~~~
   ```
   
   Could you confirm 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to