message: Fixing arrow-parquet test
diff: @@ -77,9 +77,8 @@ bool RoundTrip(std::string &path, std::vector<std::string> &skip, duckdb::Connec
  auto result = ArrowToDuck(conn, *table);
  ArrowSchema abi_arrow_schema;
  std::vector<std::shared_ptr<arrow::RecordBatch>> batches_result;
  - result->ToArrowSchema(&abi_arrow_schema);
  - auto result_schema = arrow::ImportSchema(&abi_arrow_schema);
  -
  + Result<std::shared_ptr<arrow::Schema>> result_schema;
  + bool fetch_schema = true;
  while (true) {
  auto data_chunk = result->Fetch();
  if (!data_chunk || data_chunk->size() == 0) {
  @@ -87,6 +86,11 @@ bool RoundTrip(std::string &path, std::vector<std::string> &skip, duckdb::Connec
  }
  ArrowArray arrow_array;
  data_chunk->ToArrowArray(&arrow_array);
  + if (fetch_schema) {
  + result->ToArrowSchema(&abi_arrow_schema, &arrow_array);
  + result_schema = arrow::ImportSchema(&abi_arrow_schema);
  + fetch_schema = false;
  + }
  auto batch = arrow::ImportRecordBatch(&arrow_array, result_schema.ValueUnsafe());
  batches_result.push_back(batch.MoveValueUnsafe());
  }
  @@ -224,21 +228,3 @@ TEST_CASE("Test Parquet Files Glob", "[arrow]") {
  REQUIRE(RoundTrip(parquet_path, skip, conn));
  }
  }
  -
  -TEST_CASE("Test Parquet Files H2O", "[arrow]") {
  - duckdb::DuckDB db;
  - duckdb::Connection conn {db};
  - auto &fs = duckdb::FileSystem::GetFileSystem(*conn.context);
  -
  - //! Impossible to round-trip Dictionaries so we just validate a query result
  - std::string parquet_path = "data/parquet-testing/h2oai/h2oai_group_small.parquet";
  - auto table = ReadParquetFile(parquet_path);
  - auto query = "SELECT COUNT(*), sum(v1) AS v1, sum(v3) AS v3 FROM (SELECT id3, sum(v1) AS v1, avg(v3) AS v3 FROM x "
  - "GROUP BY id3) as t;";
  - auto result = ArrowToDuck(conn, *table, query, "x");
  -
  - REQUIRE(result->success);
  - REQUIRE(CHECK_COLUMN(result, 0, {9081}));
  - REQUIRE(CHECK_COLUMN(result, 1, {28427.000000}));
  - REQUIRE(CHECK_COLUMN(result, 2, {432502.450130}));
  -}
  