This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new ed85a819a [AVRO-4084][C++] Fix bad filesystem::path conversion type on
windows (#3220)
ed85a819a is described below
commit ed85a819a286e155980b9a3c56cfc15f9e12f64b
Author: glywk <[email protected]>
AuthorDate: Fri Oct 25 10:19:56 2024 +0200
[AVRO-4084][C++] Fix bad filesystem::path conversion type on windows (#3220)
Co-authored-by: blissful <[email protected]>
---
lang/c++/test/CommonsSchemasTests.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lang/c++/test/CommonsSchemasTests.cc
b/lang/c++/test/CommonsSchemasTests.cc
index 84ee74928..e29c0b4ac 100644
--- a/lang/c++/test/CommonsSchemasTests.cc
+++ b/lang/c++/test/CommonsSchemasTests.cc
@@ -41,8 +41,8 @@ void testCommonSchema(const std::filesystem::path &dir_path) {
GenericDatum datum(schema);
const std::filesystem::path &outputDataFile = dir_path / "data_out.avro";
- DataFileReader<GenericDatum> reader(dataFile.c_str());
- DataFileWriter<GenericDatum> writer(outputDataFile.c_str(), schema);
+ DataFileReader<GenericDatum> reader(dataFile.string().c_str());
+ DataFileWriter<GenericDatum> writer(outputDataFile.string().c_str(),
schema);
while (reader.read(datum)) {
datum.value<avro::GenericRecord>();
@@ -54,8 +54,8 @@ void testCommonSchema(const std::filesystem::path &dir_path) {
GenericDatum datumOrig(schema);
GenericDatum datumNew(schema);
- DataFileReader<GenericDatum> readerOrig(dataFile.c_str());
- DataFileReader<GenericDatum> readerNew(outputDataFile.c_str());
+ DataFileReader<GenericDatum> readerOrig(dataFile.string().c_str());
+ DataFileReader<GenericDatum> readerNew(outputDataFile.string().c_str());
while (readerOrig.read(datumOrig)) {
BOOST_CHECK(readerNew.read(datumNew));
avro::GenericRecord &rec1 = datumOrig.value<avro::GenericRecord>();