I am reading a parquet file in a c++ program on windows platform.
The .parquet file has a column as "timestamp
" and the data is like "2021-04-06 16:48:04.614365+00:00
".
Presently I use int64_t
as datatype to read the timestamp and it reads the time stamp as "1671205687722819000
"
To read an integer I use code
std::shared_ptr<parquet::RowGroupReader> row_group_1 = demoObj->myParquetReader->RowGroup(0);
std::shared_ptr<parquet::ColumnReader> colVal = row_group_1->Column(4);
parquet::Int64Reader* readerVal = static_cast<parquet::Int64Reader*>(colVal.get());
int ReadVal;
rowsRead = readerVal->**ReadBatch**(1, null, null, &ReadVal, &valRead);
How do I read the date time?