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;