github.com/invertedv/freddie (go): package freddie.  This package imports the loan-level residential mortgage data provided by Freddie Mac into ClickHouse. The data is available here: https://www.freddiemac.com/research/datasets/sf-loanlevel-dataset.  The final result is a single data with nested arrays for time-varying fields. Features:  command-line parameters:  Since the standard and non-standard datasets have the same format, this utility can be used to create tables using either source.  A combined table can be built by running the app twice pointing to the same -table. On the first run, set -create Y and set -create N for the second run.  Look at the example in the joined package for the DESCRIBE output of the table.  Note that the table produced by this package has slightly fewer loans than the check figures provided by Freddie. The difference seems to be that there are some loans in the static file that are not in the monthly file. With data through 2021Q3, this totals 1484 standard loans (HARP and non-HARP), and 207 non-standard loans.
Keywords: clickhouse|freddie-mac|go|golang