fix(import): add h2 columns with defaults for prod data missing 4 cols

The prod data export was made before http/2 columns were added to
http_logs (h2_fingerprint, h2_settings_fp, h2_window_update,
h2_pseudo_order). The INSERT SELECT now provides empty/zero literals
for those 4 columns so the 56-col Native export imports into the
60-col table without a column count mismatch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
toto
2026-04-10 01:16:36 +02:00
parent 92432085e2
commit edbb4aed2c

View File

@ -148,7 +148,12 @@ SELECT
header_content_type, header_x_request_id, header_x_trace_id, header_x_forwarded_for, header_content_type, header_x_request_id, header_x_trace_id, header_x_forwarded_for,
header_sec_ch_ua, header_sec_ch_ua_mobile, header_sec_ch_ua_platform, header_sec_ch_ua, header_sec_ch_ua_mobile, header_sec_ch_ua_platform,
header_sec_fetch_dest, header_sec_fetch_mode, header_sec_fetch_site, header_sec_fetch_dest, header_sec_fetch_mode, header_sec_fetch_site,
anubis_bot_name, anubis_bot_action, anubis_bot_category anubis_bot_name, anubis_bot_action, anubis_bot_category,
-- Colonnes h2 absentes des exports prod (ajoutées post-export) : valeurs vides par défaut
'' AS h2_fingerprint,
'' AS h2_settings_fp,
0 AS h2_window_update,
'' AS h2_pseudo_order
FROM ${STAGING_TABLE} FROM ${STAGING_TABLE}
" "