Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit ee61b56

Browse files
committed
fix cider uts
1 parent ab2a593 commit ee61b56

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpp/src/cider/tests/utils/CiderNextgenTestBase.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ void CiderNextgenTestBase::assertQuery(const std::string& sql,
6262
&output_schema));
6363
}
6464
}
65-
66-
output_array.release(&output_array);
67-
output_schema.release(&output_schema);
65+
if (output_array.length != 0) {
66+
output_array.release(&output_array);
67+
output_schema.release(&output_schema);
68+
}
6869
}
6970

7071
void CiderJoinNextgenTestBase::assertJoinQuery(const std::string& sql,

0 commit comments

Comments
 (0)