From 83d80910f3cdba6ee064cb7285d475ce935be1e1 Mon Sep 17 00:00:00 2001 From: Mikko Harju Date: Fri, 22 Nov 2019 17:14:18 +0200 Subject: [PATCH] Add long_t to be used in place of long long. Alias to int64_t if it works. --- parquet/parquet_cursor.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parquet/parquet_cursor.cc b/parquet/parquet_cursor.cc index b52feb8..77a7231 100644 --- a/parquet/parquet_cursor.cc +++ b/parquet/parquet_cursor.cc @@ -1,5 +1,7 @@ #include "parquet_cursor.h" +typedef int64_t long_t; + ParquetCursor::ParquetCursor(ParquetTable* table): table(table) { reader = NULL; reset(std::vector()); @@ -775,7 +777,7 @@ void ParquetCursor::ensureColumn(int col) { case parquet::Type::INT64: { parquet::Int64Scanner* s = (parquet::Int64Scanner*)scanners[col].get(); - long long rv = 0; + long_t rv = 0; s->NextValue(&rv, &wasNull); break; } @@ -859,7 +861,7 @@ void ParquetCursor::ensureColumn(int col) { case parquet::Type::INT64: { parquet::Int64Scanner* s = (parquet::Int64Scanner*)scanners[col].get(); - long long rv = 0; + long_t rv = 0; hadValue = s->NextValue(&rv, &wasNull); colIntValues[col] = rv; break;