Skip to content

Commit a367e1c

Browse files
committed
[skip ci] - fix: use range instead of reset_index in timestream load test
Signed-off-by: Abdel Jaidi <[email protected]>
1 parent fffc525 commit a367e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/load/test_databases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_timestream_write(
1717
) -> None:
1818
name = timestream_database_and_table
1919
df_timestream["time"] = datetime.now()
20-
df_timestream.reset_index(inplace=True, drop=False)
20+
df_timestream["index"] = range(0, len(df_timestream))
2121
df_cpu = df_timestream[df_timestream.measure_kind == "cpu_utilization"]
2222
df_memory = df_timestream[df_timestream.measure_kind == "memory_utilization"]
2323
kwargs = {
@@ -44,7 +44,7 @@ def test_timestream_batch_load(
4444
) -> None:
4545
name = timestream_database_and_table
4646
df_timestream["time"] = round(time.time()) * 1_000
47-
df_timestream.reset_index(inplace=True, drop=False)
47+
df_timestream["index"] = range(0, len(df_timestream))
4848
df_cpu = df_timestream[df_timestream.measure_kind == "cpu_utilization"]
4949
df_memory = df_timestream[df_timestream.measure_kind == "memory_utilization"]
5050
error_bucket, error_prefix = wr._utils.parse_path(path2)

0 commit comments

Comments
 (0)