The batch function readFile currently passes records directly from Parquet to the callback, meaning almost all fields are Uint8arrays instead of parsed and formatted announcements.
#178901912
Solution
Update readFile to parse announcements from records before passing them to the callback.
Change summary:
Updated readFile to pass parsed announcements
Added tests for readFile
Changed createdAt in announcements to be a BigInt instead of a number
Moved some misplaced tests from activityContent/factories.test.ts to announcements/factories.test.ts
Problem
The batch function
readFile
currently passes records directly from Parquet to the callback, meaning almost all fields are Uint8arrays instead of parsed and formatted announcements. #178901912Solution
Update
readFile
to parse announcements from records before passing them to the callback.Change summary:
readFile
to pass parsed announcementsreadFile
createdAt
in announcements to be aBigInt
instead of anumber
activityContent/factories.test.ts
toannouncements/factories.test.ts