I want to create and populate a hive table without loading anything from disk.
Specifically, I have
set idlist = (1,2,3);
set values = (2,3,5);
I want to create a table with 9 rows:
id value
1 2
1 3
1 5
2 2
2 3
2 5
3 2
3 3
3 5
Again, I do not want to write a csv
file and load it into hive.
Use cases:
- iteration
- creating small test samples for SO questions
As explained in Hive insert query like SQL:
Alas, strictly speaking, this requires
<an_already_existing_non_empty_table>
...