Skip to content

Commit 24cb929

Browse files
committed
Fix column stats tests
1 parent bd079cf commit 24cb929

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/tests/unit/arcticdb/test_column_stats.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ def generate_symbol(lib, sym):
3434
axis=1,
3535
inplace=True,
3636
)
37-
expected_column_stats = expected_column_stats.iloc[[0, 1]]
37+
print("prior expected: {}".format(expected_column_stats))
38+
expected_column_stats = expected_column_stats.iloc[[0, 2]]
39+
#expected_column_stats = expected_column_stats.iloc[[0, 1]]
3840
expected_column_stats["v1.0_MIN(col_1)"] = [df0["col_1"].min(), df1["col_1"].min()]
3941
expected_column_stats["v1.0_MAX(col_1)"] = [df0["col_1"].max(), df1["col_1"].max()]
4042
expected_column_stats["v1.0_MIN(col_2)"] = [df0["col_2"].min(), df1["col_2"].min()]
4143
expected_column_stats["v1.0_MAX(col_2)"] = [df0["col_2"].max(), df1["col_2"].max()]
44+
print("df0:\n{}\ndf1:\n{}\nexpected:\n{}".format(df0, df1, expected_column_stats))
4245
return expected_column_stats
4346

4447

@@ -313,7 +316,7 @@ def test_column_stats_duplicated_primary_index(lmdb_version_store_tiny_segment):
313316
axis=1,
314317
inplace=True,
315318
)
316-
expected_column_stats = expected_column_stats.iloc[[0, 1]]
319+
expected_column_stats = expected_column_stats.iloc[[0, 3]]
317320
expected_column_stats["v1.0_MIN(col_1)"] = [df0["col_1"].min(), df1["col_1"].min()]
318321
expected_column_stats["v1.0_MAX(col_1)"] = [df0["col_1"].max(), df1["col_1"].max()]
319322

0 commit comments

Comments
 (0)