float64, written as DOUBLE in DuckDB, gives numeric fields the type needed for arithmetic when automatic inference leaves them as strings. A practical workflow is to inspect the inferred STRUCT, cast fields such as X, Y, and xG, then query the flattened data. section 5.3
Correcting shot coordinates and expected goals
Casting the nested shot record changes X, Y, and xG from VARCHAR to DOUBLE. The flattened view can then aggregate xG numerically, producing team totals such as Manchester City at 45.66 for season 2022.






