jinchengchenghh commented on PR #41646:
URL: https://github.com/apache/arrow/pull/41646#issuecomment-2172915488
I checked the ( and { is right, but still meet this exception, do you have
some clue? @lidavidm
```
dataset/CMakeFiles/arrow_java_jni_dataset.dir/src/main/cpp/jni_wrapper.cc.o
-c /arrow/java/dataset/src/main/cpp/jni_wrapper.cc
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:388:57: error: expected ‘,’
or ‘...’ before ‘struct’
388 | arrow::Status FromProto(const google::protobuf::Struct& struct,
| ^~~~~~
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc: In function ‘arrow::Status
FromProto(const google::protobuf::Struct&)’:
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:390:7: error: expected
primary-expression before ‘struct’
390 | if (struct.fields().empty()) {
| ^~~~~~
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:390:7: error: expected ‘)’
before ‘struct’
390 | if (struct.fields().empty()) {
| ~^~~~~~
| )
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:393:36: error: expected
primary-expression before ‘struct’
393 | for (const auto& [name, value] : struct.fields()) {
| ^~~~~~
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:393:35: error: expected ‘)’
before ‘struct’
393 | for (const auto& [name, value] : struct.fields()) {
| ~ ^~~~~~~
| )
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:393:36: error: expected
primary-expression before ‘struct’
393 | for (const auto& [name, value] : struct.fields()) {
| ^~~~~~
In file included from /tmp/local/include/arrow/device.h:26,
from /tmp/local/include/arrow/buffer.h:29,
from /tmp/local/include/arrow/array/data.h:27,
from /tmp/local/include/arrow/array/array_base.h:26,
from /tmp/local/include/arrow/array.h:41,
from /arrow/java/dataset/src/main/cpp/jni_wrapper.cc:24:
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc: In function ‘arrow::Status
DeserializeMap(const arrow::Buffer&,
std::unordered_map<std::basic_string<char>, std::basic_string<char> >&)’:
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:405:25: error: expected
primary-expression before ‘auto’
405 | ARROW_ASSIGN_OR_RAISE(auto struct,
ParseFromBuffer<google::protobuf::Struct>(buf));
| ^~~~
/arrow/java/dataset/src/main/cpp/jni_wrapper.cc:406:20: error: expected
primary-expression before ‘struct’
406 | return FromProto(struct, out);
| ^~~~~~
```
--
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]