@@ -1162,7 +1162,8 @@ def wait_for_job(self, job, interval=5, timeout=60):
11621162 return job_resource
11631163
11641164 def push_rows (self , dataset , table , rows , insert_id_key = None ,
1165- skip_invalid_rows = None , ignore_unknown_values = None ):
1165+ skip_invalid_rows = None , ignore_unknown_values = None ,
1166+ template_suffix = None ):
11661167 """Upload rows to BigQuery table.
11671168
11681169 Parameters
@@ -1179,6 +1180,9 @@ def push_rows(self, dataset, table, rows, insert_id_key=None,
11791180 Insert all valid rows of a request, even if invalid rows exist.
11801181 ignore_unknown_values : bool, optional
11811182 Accept rows that contain values that do not match the schema.
1183+ template_suffix : str, optional
1184+ Inserts the rows into an {table}{template_suffix}.
1185+ If table {table}{template_suffix} doesn't exist, create from {table}.
11821186
11831187 Returns
11841188 -------
@@ -1208,6 +1212,9 @@ def push_rows(self, dataset, table, rows, insert_id_key=None,
12081212 if ignore_unknown_values is not None :
12091213 data ['ignoreUnknownValues' ] = ignore_unknown_values
12101214
1215+ if template_suffix is not None :
1216+ data ['templateSuffix' ] = template_suffix
1217+
12111218 try :
12121219 response = table_data .insertAll (
12131220 projectId = self .project_id ,
0 commit comments