apache / arrow-nanoarrow

Helpers for Arrow C Data & Arrow C Stream interfaces
https://arrow.apache.org/nanoarrow
Apache License 2.0
149 stars 34 forks source link

chore(ci): Ensure tests pass for Arrow C++ <12 and on C++11 #514

Closed paleolimbot closed 3 weeks ago

paleolimbot commented 3 weeks ago

Tests for https://github.com/apache/arrow-nanoarrow/pull/507 and https://github.com/apache/arrow-nanoarrow/pull/501 and/or https://github.com/apache/arrow-nanoarrow/pull/503 either used C++17 or features from Arrow C++ > 12. Our test suite still supports these (although perhaps parts of this support should be dropped soon).

On Windows, formatting with %lu was doing some unexpected formatting. We could do a better job formatting 64-bit integers in error messages (e.g., using PRId64 and the requisite defines to ensure it works on mingw); however, we probably won't ever be able to support properly formatting an unsigned 64-bit integer on every platform we support. I changed the error message (and its test) slightly to reflect that.

paleolimbot commented 3 weeks ago

cc @cocoa-xu