/*
The table _V_VECTOR_IDX returns the numbers 0..1024. We can just join the table to itself to generate 1M rows
*/
select val from
(select ((t1.idx * 1024) + t2.idx) as val from _v_vector_idx t1 cross join _v_vector_idx t2) as list_of_one_million_numbers
where val between 1 and 5000;
– Mark FDec 03 '21 at 21:13