// 🌶 SELECT *, x::int x select x twice, first as part of * and as a BigInt, then on its own. It seems that the first has precedence, which explains the outcome.
db
SELECT x::int x, * FROM dt
c.map((d)=>d.x)// int
db.query("SELECT x::INT AS x FROM dt").then((res)=>res.map((d)=>d.x))
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.