File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,11 @@ static GDALDataset *OGRParquetDriverOpen(GDALOpenInfo *poOpenInfo)
447
447
std::unique_ptr<parquet::arrow::FileReader> arrow_reader;
448
448
auto poMemoryPool = std::shared_ptr<arrow::MemoryPool>(
449
449
arrow::MemoryPool::CreateDefault ().release ());
450
+ #if ARROW_VERSION_MAJOR >= 19
451
+ PARQUET_ASSIGN_OR_THROW (
452
+ arrow_reader,
453
+ parquet::arrow::OpenFile (std::move (infile), poMemoryPool.get ()));
454
+ #else
450
455
auto st = parquet::arrow::OpenFile (std::move (infile),
451
456
poMemoryPool.get (), &arrow_reader);
452
457
if (!st.ok ())
@@ -455,6 +460,7 @@ static GDALDataset *OGRParquetDriverOpen(GDALOpenInfo *poOpenInfo)
455
460
" parquet::arrow::OpenFile() failed" );
456
461
return nullptr ;
457
462
}
463
+ #endif
458
464
459
465
auto poDS = std::make_unique<OGRParquetDataset>(poMemoryPool);
460
466
auto poLayer = std::make_unique<OGRParquetLayer>(
You can’t perform that action at this time.
0 commit comments