Skip to content

Commit

Permalink
Missed the DuckDB template for the Biostatistics flu cases download
Browse files Browse the repository at this point in the history
  • Loading branch information
sacundim committed Jun 30, 2024
1 parent 2a079cf commit 69aaa21
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
COPY (
SELECT
*,
TIMESTAMP '{{ downloaded_at }}' AS downloadedAt
FROM read_json(
'{{ input_file }}',
format='array',
union_by_name=true,
columns={
caseId: 'STRING',
caseCategory: 'STRING',
patientAgeRange: 'STRING',
patientSex: 'STRING',
patientPhysicalCity: 'STRING',
identifyingTestSampleCollectedDate: 'DATE'
}
)
ORDER BY
identifyingTestSampleCollectedDate
)
TO '{{ output_parquet }}' (
FORMAT 'parquet', COMPRESSION 'GZIP'
);

0 comments on commit 69aaa21

Please sign in to comment.