@@ -179,7 +179,6 @@ async def write_pandas(
179179 quote_identifiers : bool = True ,
180180 infer_schema : bool = False ,
181181 auto_create_table : bool = False ,
182- create_temp_table : bool = False ,
183182 overwrite : bool = False ,
184183 table_type : Literal ["" , "temp" , "temporary" , "transient" ] = "" ,
185184 use_logical_type : bool | None = None ,
@@ -246,7 +245,6 @@ async def write_pandas(
246245 when selecting columns from the DataFrame. (Default value = False)
247246 auto_create_table: When true, will automatically create a table with corresponding columns for each column in
248247 the passed in DataFrame. The table will not be created if it already exists
249- create_temp_table: (Deprecated) Will make the auto-created table as a temporary table
250248 overwrite: When true, and if auto_create_table is true, then it drops the table. Otherwise, it
251249 truncates the table. In both cases it will replace the existing contents of the table with that of the passed in
252250 Pandas DataFrame.
@@ -291,16 +289,6 @@ async def write_pandas(
291289 else False
292290 )
293291
294- if create_temp_table :
295- warnings .warn (
296- "create_temp_table is deprecated, we still respect this parameter when it is True but "
297- 'please consider using `table_type="temp"` instead' ,
298- DeprecationWarning ,
299- # warnings.warn -> write_pandas
300- stacklevel = 2 ,
301- )
302- table_type = "temp"
303-
304292 if table_type and table_type .lower () not in ["temp" , "temporary" , "transient" ]:
305293 raise ValueError (
306294 "Unsupported table type. Expected table types: temp/temporary, transient"
0 commit comments