File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -210,22 +210,22 @@ def test_gbq_if_exists(
210
210
test_size = 200
211
211
df = make_mixed_dataframe_v2 (test_size )
212
212
213
+ df .to_gbq (
214
+ destination_table ,
215
+ _get_project_id (),
216
+ chunksize = None ,
217
+ credentials = _get_credentials (),
218
+ )
219
+
213
220
with expectation :
214
- df .to_gbq (
221
+ df .iloc [: 100 ]. to_gbq (
215
222
destination_table ,
216
223
_get_project_id (),
224
+ if_exists = if_exists ,
217
225
chunksize = None ,
218
226
credentials = _get_credentials (),
219
227
)
220
228
221
- df .iloc [:100 ].to_gbq (
222
- destination_table ,
223
- _get_project_id (),
224
- if_exists = if_exists ,
225
- chunksize = None ,
226
- credentials = _get_credentials (),
227
- )
228
-
229
229
result = pd .read_gbq (
230
230
f"SELECT COUNT(*) AS num_rows FROM { destination_table } " ,
231
231
project_id = _get_project_id (),
You can’t perform that action at this time.
0 commit comments