You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: bigframes/bigquery/_operations/io.py
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@
16
16
17
17
fromtypingimportMapping, Optional, Union
18
18
19
-
importbigframes_vendored.constants
20
19
importgoogle.cloud.bigquery
21
20
importpandasaspd
22
21
@@ -39,7 +38,7 @@ def _get_table_metadata(
39
38
defload_data(
40
39
table_name: str,
41
40
*,
42
-
replace: bool=False,
41
+
write_disposition: str="INTO",
43
42
columns: Optional[Mapping[str, str]] =None,
44
43
partition_by: Optional[list[str]] =None,
45
44
cluster_by: Optional[list[str]] =None,
@@ -57,12 +56,12 @@ def load_data(
57
56
Args:
58
57
table_name (str):
59
58
The name of the table in BigQuery.
60
-
replace (bool, default False):
61
-
Whether to replace the table if it already exists.
59
+
write_disposition (str, default "INTO"):
60
+
Whether to replace the table if it already exists ("OVERWRITE") or append to it ("INTO").
62
61
columns (Mapping[str, str], optional):
63
62
The table's schema.
64
63
partition_by (list[str], optional):
65
-
A list of columns to partition the table by.
64
+
A list of partition expressions to partition the table by. See https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/load-statements#partition_expression.
0 commit comments