maltzsama commented on PR #191:
URL: https://github.com/apache/arrow-swift/pull/191#issuecomment-5603410907
I tested the integration test executable on Debian 13 against
generated_primitive from apache/arrow-testing (cpp-21.0.0 gold files).
What works:
- ARROW_TO_JSON
- VALIDATE (on the .arrow_file format)
- Build compiles cleanly (only deprecation warnings from flatbuffers and
ArrowCExporter)
What doesn't work yet (not a blocker for this PR):
- JSON_TO_ARROW and VALIDATE on .arrow_file fail with:
```shell
$ swift run arrow-json-integration-test \
base 15:40:04
--arrow="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.arrow_file"
\
--json="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.json"
\
--mode=ARROW_TO_JSON
Building for debugging...
[1/1] Write swift-version-7FB2667E20D8AC03.txt
Build of product 'arrow-json-integration-test' complete! (0.28s)
$ swift run arrow-json-integration-test \
base 15:40:09
--arrow="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.arrow_file"
\
--json="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.json"
\
--mode=JSON_TO_ARROW
Building for debugging...
[1/1] Write swift-version-7FB2667E20D8AC03.txt
Build of product 'arrow-json-integration-test' complete! (0.28s)
Error: DecodingError.typeMismatch: expected value of type DataValue. Path:
batches[0].columns[0].DATA[0]. Debug description: Cannot decode DataValue
$ swift run arrow-json-integration-test \
base 15:40:16
--arrow="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.arrow_file"
\
--json="/tmp/arrow-testing/data/arrow-ipc-stream/integration/cpp-21.0.0/generated_primitive.json"
\
--mode=VALIDATE
Building for debugging...
[1/1] Write swift-version-7FB2667E20D8AC03.txt
Build of product 'arrow-json-integration-test' complete! (0.29s)
Error: DecodingError.typeMismatch: expected value of type DataValue. Path:
batches[0].columns[0].DATA[0]. Debug description: Cannot decode DataValue
```
But I believe this `DataValue` in `ArrowJSON.swift` decode can be addressed
in another issue.
@kou LGTM
--
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]