0
votes

I loaded nested json file to a table and got nested table. Now i want to filter the table data by where clause and insert it to another table.

so i will do destination table - new table and source table = select * from old_nested_table where status=1

The problem is that the select * is flatten the old nested table while i want to keep it nested.

How can i query nested table in order to get nested results?

1

1 Answers

2
votes

You should

check on "Allow Large Results"

and

check off "Flatten Results"

as below

enter image description here

These settings allow you to save result preserving schema of original table