1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-04-05 09:49:48 +00:00

Take mharju's suggestion to explicitly use int64_t

This commit is contained in:
Addie Morrison 2019-12-08 16:41:11 -06:00
parent 342f01eda7
commit f3da6b41f1

View File

@ -752,7 +752,7 @@ void ParquetCursor::ensureColumn(int col) {
} }
case parquet::Type::INT64: { case parquet::Type::INT64: {
parquet::Int64Scanner *s = (parquet::Int64Scanner *)scanners[col].get(); parquet::Int64Scanner *s = (parquet::Int64Scanner *)scanners[col].get();
long long rv = 0; int64_t rv = 0;
s->NextValue(&rv, &wasNull); s->NextValue(&rv, &wasNull);
break; break;
} }
@ -830,7 +830,7 @@ void ParquetCursor::ensureColumn(int col) {
} }
case parquet::Type::INT64: { case parquet::Type::INT64: {
parquet::Int64Scanner *s = (parquet::Int64Scanner *)scanners[col].get(); parquet::Int64Scanner *s = (parquet::Int64Scanner *)scanners[col].get();
long long rv = 0; int64_t rv = 0;
hadValue = s->NextValue(&rv, &wasNull); hadValue = s->NextValue(&rv, &wasNull);
colIntValues[col] = rv; colIntValues[col] = rv;
break; break;