I already did this without a temporary table , the steps are:
1) prepare a query that selects all the rows from a specific section that you want to save:
SELECT * FROM `your_data_set.tablename` WHERE _PARTITIONTIME = timestamp('2017-12-07') AND condition_to_keep_rows_which_shouldn't_be_deleted = 'condition'
if necessary, run this for other sections
2) select the Destination table for the result of your request, in which you indicate TO A DEFINED PERMISSION , you need to specify the name of the table as follows:
tablename$20171207
3) Check the option "Overwrite table" β it will overwrite only a specific section
4) Run the request, as a result of the selected section redundant lines will be deleted!
// remember that you may need to run this for other sections, where you delete lines that span multiple sections
source share